25.08.2011, 22:53
Hi, me again :/
I got another little problem.
I made something that when a player has a certain score, it cannot enter a vehicle wich requires a higher score than the actual player score...
I thought my script would work, and I got no errors... but when I come ingame it seems that it did not work...
Please hel
I got another little problem.
I made something that when a player has a certain score, it cannot enter a vehicle wich requires a higher score than the actual player score...
I thought my script would work, and I got no errors... but when I come ingame it seems that it did not work...
Код:
//OnPlayerState callback up here if(newstate == 2) { new vehicle; vehicle = GetVehicleModel(GetPlayerVehicleID(playerid)); if(vehicle == 421) { if(gTeam[playerid] == TEAM_DRIVERS && GetPlayerScore(playerid) < 120 ) //if the player is in the right team and has the right score { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, COLOR_RED, "U need 120 for this car"); return 1; } else { return 1; } } return 1; } //Other code