07.05.2014, 16:16
That's easy!
I learnt this from the person named "MISIUR" here on SA-MP Forums :P.
At the top of your script, make a new variable named
Then do in the ZCMD, ...
Then if you have like a destroy veh command, just use same thing, again.
--
Credit goes to Misiur, for learning me to script PAWNO, in such a way I never did before.
By the way, #define SCM SendClientMessage - I just use that instead of stock SendClientMessage 1000x, easier to type.
I learnt this from the person named "MISIUR" here on SA-MP Forums :P.
At the top of your script, make a new variable named
pawn Код:
new AlreadySpawned[MAX_PLAYERS] = 0;
pawn Код:
CMD:v(playerid, params[])
{
if(AlreadySpawned[playerid] != 0) return SCM(playerid, -1, "Handle already obtained.");
vID = CreateVehicle(bla bla bla);
AlreadySpawned[playerid] = vID;
PutPlayerInVehicle(playerid, vID, 0);
}
pawn Код:
AlreadySpawned[playerid] = 0;
Credit goes to Misiur, for learning me to script PAWNO, in such a way I never did before.

By the way, #define SCM SendClientMessage - I just use that instead of stock SendClientMessage 1000x, easier to type.

