Az Elsõ Kérdésre a válasz Talán ez! DE nem 100%-os!
Írd Át hogy neked is megfeleljen!
public OnPlayerEnterCheckpoint(playerid)
{
switch(munka[playerid])
{
case 1:
{
SetTimer(\"fagyaszt\", 5000, false);
SetPlayerCheckpoint(playerid,-2455.4824,2243.3101,5.3876, CPSIZE);
munka[playerid] = 2;
GivePlayerMoney(playerid, GetPlayerMoney(playerid)+350);
}
case 2:
{
SetTimer(\"fagyaszt\", 5000, false);
SetPlayerCheckpoint(playerid,2813.0979,960.1503,10.4548, CPSIZE);
munka[playerid] = 3;
GivePlayerMoney(playerid, GetPlayerMoney(playerid)+350);
}
case 3:
{
SetTimer(\"fagyaszt\", 5000, false);
SetPlayerCheckpoint(playerid,2768.4937,-2453.5171,13.2139, CPSIZE);
munka[playerid] = 4;
GivePlayerMoney(playerid, GetPlayerMoney(playerid)+350);
}
case 4:
{
GivePlayerMoney(playerid, GetPlayerMoney(playerid)+350);
DisablePlayerCheckpoint(playerid);
munka[playerid] = 0;
gTeam[playerid] = CIVIL;
SendClientMessage(playerid, COLOR_YELLOW, \"A munkának vége\");
}
}
return 1;
}