19.04.2011, 23:10
Good Job
pawn Code:
if(strcmp(cmd, "/Misil", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
new vehicleid = strval(tmp);
tmp = strtok(cmdtext, idx);
new OffX = strval(tmp);
tmp = strtok(cmdtext, idx);
new Offz = strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "[USA]: /Misil [AutoId] [offsetx] [offsetz]");
return 1;
}
RemoveVehicleMissiles(vehicleid);
AddVehicleMissiles(vehicleid,OffX,Offz);
SendClientMessage(playerid, COLOR_WHITE, "Misiles agregados correctamente");
}
return 1;
}