[Question] It's possible to block... - 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: [Question] It's possible to block... (
/showthread.php?tid=471425)
[Question] It's possible to block... -
Matnix - 23.10.2013
Hello guys,
I would want to make a command to change teams (it's done) - but I will want to know if it's was possible to block the
F4 buttons? So when he will press F4 nothing will happen after death. (So he will need to change team only by typing the command).
* I know it's un-usefull - but I want to learn somethings new *
Re: [Question] It's possible to block... -
JaKe Elite - 23.10.2013
No it is not possible.
Re: [Question] It's possible to block... -
ejb - 23.10.2013
Try this:
pawn Код:
new FirstSpawn[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
FirstSpawn[playerid] = 0;
return 1;
}
public OnPlayerSpawn(playerid)
{
FirstSpawn[playerid] = 1;
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
if (FirstSpawn[playerid] == 1)
{
SpawnPlayer(playerid);
}
return 1;
}
Re : [Question] It's possible to block... -
Matnix - 23.10.2013
@
ejb, thanks for trying to help but I don't ask for that. @
Jake, ok thanks you for the info.