21.07.2016, 08:15
Код:
CMD:autotunecar(playerid,params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid,COLOR_LIGHTRED, "Logheazate mai intai"); if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER ) return SendClientMessage(playerid,COLOR_GRAD3,"Intai trebuie sa fi intr-o masina "); if(PlayerInfo[playerid][pAdmin] > 2 ) { if( GetVehicleModel(playerid,GetPlayerVehicleID(playerid)) == 411) { AddVehicleComponent(GetPlayerVehicleID(playerid), 1010); AddVehicleComponent(GetPlayerVehicleID(playerid), 1083); SendClientMessage(playerid,-1,"Masina a fost tunata"); } else if(GetVehicleModel(playerid,GetPlayerVehicleID(playerid)) == 560) { AddVehicleComponent(GetPlayerVehicleID(playerid), 1010); AddVehicleComponent(GetPlayerVehicleID(playerid), 1026); AddVehicleComponent(GetPlayerVehicleID(playerid), 1027); AddVehicleComponent(GetPlayerVehicleID(playerid), 1033); SendClientMessage(playerid,-1,"Masina a fost tunata"); } else { SendClientMessage(playerid,-1,"Alege un infernus / sultan"); } } else { SendClientMessage(playerid,-1,AdminOnly); } return 1; }