Need spawnprop cmd

Started by Slark__, Sep 19, 2016, 06:16 PM

Previous topic - Next topic

Slark__

hello im making my own property system.. i need spawnprop cmd help .. if anyone idea or have help me :)

aXXo


Murdock


Slark__

Quote from: Murdock on Sep 20, 2016, 07:01 AMSpawnprop? What?

lif i setspawn pos to my property .. when ever i join server. i will spawn at my property.


MacTavish

it is simple just check how many props you own select a random prop coods and spawn yourself

e.g player.Pos = Vector(prop.Pos.x, prop.Pos,y,prop.Pos.z);

Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P

Slark__

Quote from: MacTavish on Sep 20, 2016, 07:44 AMit is simple just check how many props you own select a random prop coods and spawn yourself

e.g player.Pos = Vector(prop.Pos.x, prop.Pos,y,prop.Pos.z);

TY i will try.

Slark__

       local q = QuerySQL( db, "SELECT Name, rowid FROM Properties WHERE Owner LIKE '" + player.Name + "'" );
            if ( GetSQLColumnData(q,0) != null )
            {
       local splitPos = split( GetSQLColumnData( q, 5 ), " " );
       local x = splitPos[ 1 ], y = splitPos[ 2 ], z = splitPos[ 3 ];
       player.Pos = Vector(x.tofloat(), y.tofloat(), z.tofloat());
            MessagePlayer("[#F9FF2A]*Teleported* [#FFFFFF]Teleported To Your Property!", player );
       FreeSQLQuery(q);
       }

i tried .. i cant goto prop when i spawn.

Xmair

You are selecting Name and rowid only from the query.

Credits to Boystang!

VU Full Member | VCDC 6 Coordinator & Scripter | EG A/D Contributor | Developer of VCCNR | Developer of KTB | Ex-Scripter of EAD

Slark__

Quote from: Xmair on Sep 20, 2016, 04:51 PMYou are selecting Name and rowid only from the query.

its wrong? any help pls?

KAKAN

Quote from: Slark__ on Sep 20, 2016, 05:11 PM
Quote from: Xmair on Sep 20, 2016, 04:51 PMYou are selecting Name and rowid only from the query.

its wrong? any help pls?

Use SELECT *Because that's what I see in most shitty scripts :p
oh no

Slark__

Quote from: KAKAN on Sep 21, 2016, 08:44 AM
Quote from: Slark__ on Sep 20, 2016, 05:11 PM
Quote from: Xmair on Sep 20, 2016, 04:51 PMYou are selecting Name and rowid only from the query.

its wrong? any help pls?

Use SELECT *Because that's what I see in most shitty scripts :p

Yup but i fixed :D