Daxic 0 Odesláno: 23. Listopad, 2009 Share Odesláno: 23. Listopad, 2009 Dobrý den potřeboval bych pomoct s checpointama... v player SPAWN mám již nedefinováno 1 checkpoint a další by mneli navazovat do nekonečna se střídat... ale problém nastal tehdy když sem sebral 3 checkpoint pls poraďte... public OnPlayerEnterCheckpoint(playerid) { switch(policie[playerid]) { case 0: { GameTextForPlayer(playerid, "~w~Pay~y~ 200$", 1000, 3); GivePlayerMoney(playerid, 200); DisablePlayerCheckpoint(playerid); policie[playerid] = 0; SetPlayerCheckpoint(playerid,-264.265, 2586.253, 62.814,2.0); } } switch(teroristi[playerid]) { case 1: { GameTextForPlayer(playerid, "~w~Pay~y~ 200$", 1000, 3); GivePlayerMoney(playerid, 200); DisablePlayerCheckpoint(playerid); teroristi[playerid] = 0; SetPlayerCheckpoint(playerid,-1481.126, 2630.331, 59.424,2.0); } } } Link to comment Share on other sites More sharing options...
0 ATomas 291 Odesláno: 24. Listopad, 2009 Share Odesláno: 24. Listopad, 2009 no kod je dobre de o to jak to pouzivas a jak uz sem rikal switch(policie[playerid]) { case 0: } je stejne jako if(policie[playerid] == 0) a switch(teroristi[playerid]) { case 1: } stejne jako if(teroristi[playerid] == 1) Link to comment Share on other sites More sharing options...
Dotaz
Daxic 0
Dobrý den potřeboval bych pomoct s checpointama...
v player SPAWN mám již nedefinováno 1 checkpoint a další by mneli navazovat do nekonečna se střídat... ale problém nastal tehdy když sem sebral 3 checkpoint pls poraďte...
public OnPlayerEnterCheckpoint(playerid)
{
switch(policie[playerid])
{
case 0:
{
GameTextForPlayer(playerid, "~w~Pay~y~ 200$", 1000, 3);
GivePlayerMoney(playerid, 200);
DisablePlayerCheckpoint(playerid);
policie[playerid] = 0;
SetPlayerCheckpoint(playerid,-264.265, 2586.253, 62.814,2.0);
}
}
switch(teroristi[playerid])
{
case 1:
{
GameTextForPlayer(playerid, "~w~Pay~y~ 200$", 1000, 3);
GivePlayerMoney(playerid, 200);
DisablePlayerCheckpoint(playerid);
teroristi[playerid] = 0;
SetPlayerCheckpoint(playerid,-1481.126, 2630.331, 59.424,2.0);
}
}
}
Link to comment
Share on other sites
1 odpověd na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now