[Ajuda] bloquear classe - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] bloquear classe (
/showthread.php?tid=491505)
bloquear classe -
RussoTDM - 31.01.2014
gostaria de saber como bloquear uma classe
public OnPlayerRequestClass(playerid, classid)
{
TogglePlayerSpectating(playerid,0);
switch (classid)
{
case 0:
limparChat(playerid, 30),
SetPlayerPos(playerid, 2431.19921875, -1679.099609375, 13.800000190735),
case 1:
limparChat(playerid, 30),
SetPlayerPos(playerid, 1023.200012207, -1692.5, 13.5),
}
return 1;
}
no sistema de salvamento tem um PlayerInfo[playerid][bloqueo], ai por exemplo, se a pessoa esta bloqueada, ela n pode pegar outra skin, sу a primeira, a segunda ficar bloqueada, oq fasso ?
Re: bloquear classe -
zSuYaNw - 31.01.2014
Vocк pode usar OnPlayerRequestSpawn..
https://sampwiki.blast.hk/wiki/OnPlayerRequestSpawn
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
if(GetPlayerSkin(playerid != SEU_SKIN)
{
SendClientMessage(playerid,COLOR_GREEN,"vc n pode nascer com skin diferenti.");
return 0;
}
return 1;
}
Re: bloquear classe -
RussoTDM - 31.01.2014
obrigado cara +RAP