09.12.2013, 20:40
usa loop
pawn Код:
#include < A_SAMP >
#include < ZCMD >
command(criarcarro, playerid, params[] ) {
if(isnull(params))
return SendClientMessage(playerid, -1, "[ USE ]: /criarcarro [ID]");
new Float:PosicaoAll[3];
for(new x = 0; x < MAX_PLAYERS; x++ ) {
GetPlayerPos(x, PosicaoAll[0], PosicaoAll[1], PosicaoAll[2]);
CreateVehicle(strval(params), PosicaoAll[0], PosicaoAll[1], PosicaoAll[2], 355.55, -1, -1, cellmax);
}
return true;
}