SA-MP Forums Archive
Need help /wave - 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: Need help /wave (/showthread.php?tid=155397)



Need help /wave - Youtube - 18.06.2010

I wanna make when i type /wave,it will be like
*******: Waves.
thats what i have
Код:
if (strcmp(cmdtext, "/wave", true)==0)
  {
      SendClientMessageToAll(COLOR_LEMON, "%s Waves");
      return 1;
  }



Re: Need help /wave - Naxix - 18.06.2010

Try this:

Код:
if (strcmp(cmdtext, "/wave", true)==0)
  {
      new name[MAX_PLAYER_NAME],str[15];
      GetPlayerName(playerid,name,sizeof(name));
      format(str,sizeof(str),"%s Waves",name);
      SendClientMessageToAll(COLOR_LEMON, str);
      return 1;
  }



Re: Need help /wave - Crezy-Boy - 18.06.2010

pawn Код:
if(strcmp(cmd, "/wave", true) == 0)
{
    new name[MAX_PLAYER_NAME], string[44];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "%s waves.",name);
    SendClientMessageToAll(COLOR_LEMON, string);
    return 1;
}
Think its better? :O dont know.