08.07.2009, 21:37
Sorry for double post.
When I enter the checkpoint with an infernus im supposed to get 100.000, but I dont get that money when I enter..
My code:
When I enter the checkpoint with an infernus im supposed to get 100.000, but I dont get that money when I enter..
My code:
Code:
public OnPlayerEnterStreamedCheckpoint(playerid, streamid) { new modelid = GetVehicleModel(GetPlayerVehicleID(playerid)); if(streamid == dockCP && modelid == 411) { GivePlayerMoney(playerid, 100000); new string[128]; new playername[MAX_PLAYER_NAME]; GetPlayerName(playerid,playername,sizeof(playername)); format(string, sizeof(string), "%s has won the event!",playername); SendClientMessageToAll(COLOR_LIGHTBLUE,string); DestroyCheckpoint(dockCP); } else { SendClientMessage(playerid,COLOR_BRIGHTRED,"ERROR: Wrong car! This is not an infernus!"); } return 1; }