How to disable speach during class selection. - 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: How to disable speach during class selection. (
/showthread.php?tid=172166)
How to disable speach during class selection. -
Jmarr - 29.08.2010
How would I go about disabling people from pressing T and talking during the skin selection? I know it goes on OnPlayerRequestClass, but don't know how to go about coding it.
Thanks.
Re: How to disable speach during class selection. -
[HiC]TheKiller - 29.08.2010
pawn Код:
public OnPlayerSpawn(playerid)
{
SetPVarInt(playerid, "Talkable", 1);
return 1;
}
public OnPlayerText(playerid, text[])
{
if(GetPVarInt(playerid, "Talkable") == 0) return 0;
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPVarInt(playerid, "Talkable", 0);
return 1;
}
Re: How to disable speach during class selection. -
Jmarr - 29.08.2010
Quote:
Originally Posted by [HiC]TheKiller
pawn Код:
public OnPlayerSpawn(playerid) { SetPVarInt(playerid, "Talkable", 1); return 1; }
public OnPlayerText(playerid, text[]) { if(GetPVarInt(playerid, "Talkable") == 0) return 0; return 1; }
public OnPlayerRequestClass(playerid, classid) { SetPVarInt(playerid, "Talkable", 0); return 1; }
|
Worked.
![Smiley](images/smilies/smile.png)
Thanks.