When Player Selects Class...[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: When Player Selects Class...[Help] (
/showthread.php?tid=367232)
When Player Selects Class...[Help] -
ShawtyyMacJunior - 09.08.2012
I need a simple code done which i dont know how to do. This is how i wanted it to go but it seems not be working how i coded mines. Probably cause i did it wrong. Anyways :
When a player selects a class, TogglePlayerControllabe(playerid, 0);
How would that code look?
Re: When Player Selects Class...[Help] -
.Wicked - 09.08.2012
Do you have any kind of team system or etc? If then send me it.
Anyways this should work:
pawn Код:
TogglePlayerControllabe(playerid, 0);
Put that under "public OnPlayerRequestClass(playerid, classid)" AKA
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
TogglePlayerControllabe(playerid, 0);
return 1;
}