01.09.2011, 21:15
pawn Код:
new smoke[MAX_VEHICLES];//topo do gm
if(!strcmp(cmd, "Fumaзa", true))
{
new carid = GetPlayerVehicleID(playerid);
if(carid == 511 || carid == 512 || carid == 593 || carid == 520 || carid == 553 || carid == 476 || carid == 519 || carid == 460)
{
if(GetPlayerState == PLAYER_STATE_DRIVER)
{
if(smoke[carid] == 0)
{
smoke[carid] = AttachObjectToVehicle(2780, carid, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COR, "Fumaca ligada.");
}
else
{
DestroyObject(smoke[carid);
SendClientMessage(playerid, COR, "Fumaca desligada.");
smoke[carid] = 0;
}
}
}
return 1;
}