Bocsi de nem nagyon értem Ebbe bele tudnád irni
[pawn]public OnPlayerEnterCheckpoint(playerid)
{
new randombetoncp = random(sizeof(betoncp));
while(randombetoncp == GetPVarInt(playerid,\"CPStatus\")) randombetoncp = random(sizeof(betoncp));
SetPVarInt(playerid,\"CPStatus\",randombetoncp);
if(GetPVarInt(playerid,\"CPnum\") != sizeof(betoncp)) SetPVarInt(playerid,\"CPnum\",GetPVarInt(playerid,\"CPnum\")+1);
else SetPVarInt(playerid,\"CPnum\",1);
if(betoncpk[playerid] == true)
{
SetPlayerCheckpoint(playerid, betoncp[randombetoncp][0], betoncp[randombetoncp][1], betoncp[randombetoncp][2], 10.0);
}
if(GetPVarInt(playerid,\"CPnum\") == 1)
{
GivePlayerMoney(playerid,2000);
GameTextForPlayer(playerid, \"~r~Ürítés !!\", 16000, 3);
TogglePlayerControllable(playerid, false);
SetTimerEx(\"betonurites\", 16000, 0,\"e\",playerid);
}
if(GetPVarInt(playerid,\"CPnum\") == 2)
{
GameTextForPlayer(playerid, \"~r~Tankolás !!\", 16000, 3);
TogglePlayerControllable(playerid, false);
SetTimerEx(\"betontankolas\", 16000, 0,\"e\",playerid);
}
return 1;
}[/pawn]