SA-MP Forums Archive
GameTextForPlayer OnPlayerCommandText - 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: GameTextForPlayer OnPlayerCommandText (/showthread.php?tid=106220)



GameTextForPlayer OnPlayerCommandText - Angelo94 - 01.11.2009

I want to send a message to whoever types /hydradm



if(strcmp(cmd, "/hydradm", true) == 0) {
GameTextForPlayer(playerid,"~r~Hydra ~g~Battlefield ",5000,5);
SetPlayerPos(playerid,8108.185546875,-1643.4208984375,3905);
return 1;
}



I don't get any error, but it doesn't appear any message when i try it on my server! the teleport works though.




Re: GameTextForPlayer OnPlayerCommandText - Peter_Corneile - 01.11.2009

pawn Код:
if(strcmp(cmd, "/hydradm", true) == 0)
{
  GameTextForPlayer(playerid,"~r~Hydra ~g~Battlefield ",3000,5);
  SetPlayerPos(playerid,8108.185546875,-1643.4208984375,3905);
  return 1;
}
Nothing seems wrong in this command


Re: GameTextForPlayer OnPlayerCommandText - Angelo94 - 01.11.2009

Yes, but nope. When i teleport there it should appear the big writing "Hydra Battlefield", but it doesn't.


Re: GameTextForPlayer OnPlayerCommandText - RyDeR` - 01.11.2009

Maybe there's another gametext running?


Re: GameTextForPlayer OnPlayerCommandText - Angelo94 - 03.11.2009

No there isn't any other gametext running...