Quote:
Originally Posted by еddy
Quote:
Originally Posted by [eX
Klutty ]
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:
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;
}
|
Try to add the GivePlayerMoney above the DestroyCheckpoint.
|
It is already above that.