18.07.2010, 14:31
So, today I started to figure out a /ftow command. However, the cars that should respawn doesn't do it.
Код:
if(strcmp(cmd, "/ftow", true) ==0) { if(PlayerInfo[playerid][LoggedIn] == 1) { if(PlayerInfo[playerid][Faction] == 1) { if(PlayerInfo[playerid][Rank] >= 4) { for(new i = 0;i<MAX_CARS;i++) { if(CarSystem[i][Carowner] == PlayerInfo[playerid][Faction]) { SetVehicleToRespawn(i); SendClientMessage(playerid, COLOR_WHITE, "You have successfully faction towed your faction vehicles"); return 1; } } } else return SendClientMessage(playerid, COLOR_RED, "You need to be aleast rank 4 to faction tow."); } else return SendClientMessage(playerid, COLOR_RED, "You are not in a faction."); } else return SendClientMessage(playerid, COLOR_RED, "You need to be logged in to perform this command."); return 1; }