GiGiMuScHi Posted November 2, 2011 Report Share Posted November 2, 2011 Salutare.As dori daca se poate sa ma ajutati sa imi modificati voi sau sa imi spuneti ce ar trebui sa fac ca masinile personale sa nu se mia respawneze la comanda /rac.Doar cele de la factiuni de la rent si cele dupa strada.Uitati comanda /rac: if(strcmp(cmd, "/respawnallcars", true) == 0 || strcmp(cmd, "/rac", true) == 0) // by Ellis { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] < 1339) { SendClientMessage(playerid, COLOR_2RED, " Nu esti AUTORIZAT !"); return 1; } SetTimer("ractime", 10000, 0); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "Toate Masinile Nefolosite Vor fi Respawnate de catre %s in 10 secunde.", sendername); BroadCast(COLOR_RED,string); } return 1; }Ma puteti ajuta? Respecta Si Vei Fi Respectat !!! Link to comment Share on other sites More sharing options...
TzAkS Posted November 3, 2011 Report Share Posted November 3, 2011 Incearca asa if(strcmp(cmd, "/respawnallcars", true) == 0 || strcmp(cmd, "/rac", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] >= 1339 { new bool:unwanted[CAR_AMOUNT]; for(new player=0; player<MAX_PLAYERS; player++) { if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; } } for(new car = 1; car <= 500; car++) //aici pui tu de la ce id pana la ce id vrei sa se respaneze masinile { if(!unwanted[car]) SetVehicleToRespawn(car); } GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "All unused cars have been respawned by administrator %s.", sendername); SCMTA(COLOR_WHITE,string); } } return 1; } Link to comment Share on other sites More sharing options...
IstuntmanI Posted November 3, 2011 Report Share Posted November 3, 2011 Incearca asa if(strcmp(cmd, "/respawnallcars", true) == 0 || strcmp(cmd, "/rac", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] >= 1339 { new bool:unwanted[CAR_AMOUNT]; for(new player=0; player<MAX_PLAYERS; player++) { if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; } } for(new car = 1; car <= 500; car++) //aici pui tu de la ce id pana la ce id vrei sa se respaneze masinile { if(!unwanted[car]) SetVehicleToRespawn(car); } GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "All unused cars have been respawned by administrator %s.", sendername); SCMTA(COLOR_WHITE,string); } } return 1; }Daca mai ii ajuti pe cei cu probleme godfather care nu posteaza in acel topic, ai warn.Probleme Godfather. Link to comment Share on other sites More sharing options...
Question
GiGiMuScHi
Salutare.
As dori daca se poate sa ma ajutati sa imi modificati voi sau sa imi spuneti ce ar trebui sa fac ca masinile personale sa nu se mia respawneze la comanda /rac.Doar cele de la factiuni de la rent si cele dupa strada.
Uitati comanda /rac:
Ma puteti ajuta?
Respecta Si Vei Fi Respectat !!!
Link to comment
Share on other sites
2 answers to this question
Recommended Posts