29.08.2010, 07:04
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.
Thanks.
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;
}
pawn Код:
|