Help with two commands
#1

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
Reply
#2

strcmp, ycmd, zcmd?
Reply
#3

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
Reply
#4

strcmp
Reply
#5

can you make the second command
Reply
#6

Hmm you can check this filterscript. It's created by me with the same function.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)