31.07.2014, 19:10
Hey Guys, I want to make a checkpoint in serveral places but i want it that if you enter the checkpoints it gives you score and money
new CP;
CP = CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 200.0, Float:drawdistance = 0.0);
public OnPlayerEnterDynamicCP(playerid, checkpointid);
{
if(checkpointid == CP)
{
GivePlayerScore(playerid, score)
GivePlayerMoney(playerid, money)
}
return 1;
}