Else on script help please? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Else on script help please? (
/showthread.php?tid=401278)
Else on script help please? -
Riggster - 22.12.2012
How would I make this into a else command -
Код:
if(strcmp(cmdtext,"/duty",true)==0)
{
if(IsPlayerInRangeOfPoint(playerid,5, 264.1788,109.7014,1004.6172))
SetPlayerSkin(playerid, 280);
SendClientMessage(playerid, 0xFF0000AA, "* To get a car go to the icon in the garage and it will tell you what to type!");
SendClientMessage(playerid, 0xFF0000AA, "* Type /weapons too see a list of weapons!");
//else? SendClientMessage(playerid, 0xFF0000AA, "* You are not in range of the /duty point");
return 1;
}
Re: Else on script help please? -
[HK]Ryder[AN] - 22.12.2012
pawn Код:
if(strcmp(cmdtext,"/duty",true)==0)
{
if(IsPlayerInRangeOfPoint(playerid,5, 264.1788,109.7014,1004.6172)) {
SetPlayerSkin(playerid, 280);
SendClientMessage(playerid, 0xFF0000AA, "* To get a car go to the icon in the garage and it will tell you what to type!");
SendClientMessage(playerid, 0xFF0000AA, "* Type /weapons too see a list of weapons!");
}
else {
SendClientMessage(playerid, 0xFF0000AA, "* You are not in range of the /duty point");
}
return 1;
}
Re: Else on script help please? -
DaRk_RaiN - 22.12.2012
pawn Код:
if(strcmp(cmdtext,"/duty",true)==0)
{
if(!IsPlayerInRangeOfPoint(playerid,5, 264.1788,109.7014,1004.6172))return SendClientMessage(playerid, 0xFF0000AA, "* You are not in range of the /duty point");
SetPlayerSkin(playerid, 280);
SendClientMessage(playerid, 0xFF0000AA, "* To get a car go to the icon in the garage and it will tell you what to type!");
SendClientMessage(playerid, 0xFF0000AA, "* Type /weapons too see a list of weapons!");
return 1;
}