[HELP] Command Help - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Command Help (
/showthread.php?tid=145878)
[HELP] Command Help -
eDz0r - 04.05.2010
Heloo There i want to make 1 command with
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 7.0, x, y, z))
but i want to use in diferrent places with diferent action can you tell me how it look because i try and not work please make a exampe like this
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext,"/command",true))
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, x,y, z))
{
//First Things Here
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, x,y, z))
{
//Second Thing Here
}
return 1;
}
P.S Sorry Fo My English I Am
ROMANIAN
Re: [HELP] Command Help -
Cristiano[TW[ - 04.05.2010
First To Script Ur English must be good sry for this words
Re: [HELP] Command Help -
Jakku - 04.05.2010
Just change the coordinates in the second "IsPlayerInRangeOfPoint"
Re: [HELP] Command Help -
eDz0r - 04.05.2010
Quote:
Originally Posted by Jakku
Just change the coordinates in the second "IsPlayerInRangeOfPoint"
|
I do this man but not work .
I am not so dumb you know.
Re: [HELP] Command Help -
aircombat - 04.05.2010
try it with the "else" here is the code :
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext,"/command",true))
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, x,y, z))
{
//First Things Here
}
else if(IsPlayerInRangeOfPoint(playerid, 7.0, x,y, z))
{
//Second Thing Here
}
return 1;
}
return 0;
}