23.12.2010, 12:49
(
Последний раз редактировалось Chavequinho; 23.12.2010 в 14:29.
)
Eu fiz de outro geito:
Carros comeзam do id:
Atй o id:
Ken, o:
Nгo tem nada a ver com o que vocк disse!
pawn Код:
if(strcmp(cmd, "/veiculo", true) == 0)
{
cmd = strtok(cmdtext, idx);
if(!strlen(cmd))
{
SendClientMessage(playerid, 0xFF0000AA, "USO: /veiculo [ID] [COR 1] [COR 2]");
return 1;
}
new ID;
ID = strval(cmd);
cmd = strtok(cmdtext, idx);
if(!strlen(cmd))
{
SendClientMessage(playerid, 0xFF0000AA, "USO: /veiculo [ID] [COR 1] [COR 2]");
return 1;
}
new Cor1;
Cor1 = strval(cmd);
cmd = strtok(cmdtext, idx);
if(!strlen(cmd))
{
SendClientMessage(playerid, 0xFF0000AA, "USO: /veiculo [ID] [COR 1] [COR 2]");
return 1;
}
new Cor2;
Cor2 = strval(cmd);
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
AddStaticVehicle(ID, X, Y, Z, 0.0, Cor1, Cor2);
return SendClientMessage(playerid,0x00FF00AA,"Veiculo Criado");
}
pawn Код:
400
pawn Код:
611
pawn Код:
AddStaticVehicle