SA-MP Forums Archive
[DUV] Profs Com Level's - 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: [DUV] Profs Com Level's (/showthread.php?tid=143949)



[DUV] Profs Com Level's - BurrodaZero - 25.04.2010

Oi Gente й o Seguinte Fiz um Sistema de Levels Salvбlveis + Sistema de Profs a Partir do Tuto do Drakun e Explicaзгo do Kyle PT
Entгo Queria Saber Seguinte:
pawn Код:
case 0:
if(GetPlayerScore(playerid) >= 50)
{
udb_setProf(PlayerName(playerid), Profissao[playerid]);
SendClientMessage(playerid, COLOR_YELLOW, "Agora Vocк й Seguranзa");
Profissao[playerid] = SEGUNRANCA;
TogglePlayerControllable(playerid,1);
SetPlayerColor(playerid, COLOR_SEGURANCA);
PlayerPlaySound(playerid,MUSIC,2418.3506,1123.9360,10.8203);
GivePlayerWeapon(playerid,5,0);
GivePlayerWeapon(playerid,31,1000);
GivePlayerWeapon(playerid,25,100);
}
Ali Onde tem
pawn Код:
if(GetPlayerScore(playerid) >= 2)
Significa que So player Level 50 Pode ser Seguranзa Agora como Faзo pra Enviar uma Mensagem

Queria Assim
pawn Код:
SendClientMessage(playerid, COLOR_YELLOW, "Vocк tem Nгo Level 50);



Re: [DUV] Colocar MSG que Retorne - BiGGaMeS - 25.04.2010

Se eu naum me engano eh assim oh:
pawn Код:
case 0:
if(GetPlayerScore(playerid) >= 50)
{
udb_setProf(PlayerName(playerid), Profissao[playerid]);
SendClientMessage(playerid, COLOR_YELLOW, "Agora voce e um seguranca");
Profissao[playerid] = SEGUNRANCA;
TogglePlayerControllable(playerid,1);
SetPlayerColor(playerid, COLOR_SEGURANCA);
PlayerPlaySound(playerid,MUSIC,2418.3506,1123.9360,10.8203);
GivePlayerWeapon(playerid,5,0);
GivePlayerWeapon(playerid,31,1000);
GivePlayerWeapon(playerid,25,100);
}
else
{
SendClientMessage(playerid, COLOR_YELLOW,"Voce nao tem level 50!");
}
Acho q eh isso!
Espero ter ajudado!