Help with two commands - 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: Help with two commands (
/showthread.php?tid=286061)
Help with two commands -
boyan96 - 26.09.2011
How i can make this 2 command
1: First commands to be when i write /start to get x,y,z and to sent to all player message
2:the second command to be when someone write start from the admin it will sent to all player message and the player will invite to join and when they write /join they to go to the place where someone from the admin is write /start
Re: Help with two commands -
Kingunit - 26.09.2011
strcmp, ycmd, zcmd?
Re: Help with two commands -
Kostas' - 26.09.2011
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/start", true)==0)
{
GetPlayerPos(playerid, PosX[playerid], PosY[playerid], PosZ[playerid]);
GetPlayerFacingAngle(playerid, PosA[playerid]);
SendClientMessageToAll(playerid, COLOR_GREEN, "Message");
PosI[playerid] = (GetPlayerInterior(playerid));
PlayerPlaySound(playerid, 1137 , 0.0, 0.0, 0.0);
return 1;
}
//Others commands
Re: Help with two commands -
boyan96 - 26.09.2011
strcmp
Re: Help with two commands -
boyan96 - 26.09.2011
can you make the second command
Re: Help with two commands -
Kingunit - 26.09.2011
Hmm you can check
this filterscript. It's created by me with the same function.