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)
+--- Thread: help (
/showthread.php?tid=478037)
help -
iBots - 27.11.2013
i tried to make a thing which is:
if i am in game and i write "?" without anything it will say ... in color purple(What?) what should i put instead of
if(strcmp(cmd,
??
Re: help -
xVIP3Rx - 27.11.2013
You mean, When I type /? or ? I get "What?" in purple ?
If yes, then do you mean /? or just ?, If you mean /? then
pawn Код:
if(!strcmp(cmdtext, "/?"))
{
SendClientMessage(playerid, 0xFF00FFFF, "What?");
return 1;
}
and for just "?"
pawn Код:
public OnPlayerText(playerid, text[])
{
if(text[0] == "?")
{
SendClientMessage(playerid, 0xFF00FFFF, "What?");
return 0;
}
return 1
}