18.08.2012, 22:34
Vocк Definiu que policial e 0 mais voce esta usando POLICIAl no codigo
Para poupar linhas ao inves de colocar policial coloca 0
coloca assim
CMD:dp(playerid)
{
if(Profissao[playerid] == 0)
{
SetPlayerPos(playerid,1384.2577,10.8203,174.6833);
SendClientMessage(playerid, CINZA, "SERVER: Olб, Vocк й um policial.");
new nome[MAX_PLAYER_NAME], stringnome[200];
GetPlayerName(playerid, nome, sizeof(nome));
format(stringnome, sizeof(stringnome), "SERVER: %s estб trabalhando.",nome);
SendClientMessageToAll(AMARELO, stringnome);
GivePlayerWeapon(playerid, 3, 1);
GivePlayerWeapon(playerid, 22, 1000);
GivePlayerWeapon(playerid, 31, 1000);
GivePlayerWeapon(playerid, 41, 1000);
GivePlayerWeapon(playerid, 45, 1000);
GivePlayerWeapon(playerid, 46, 1000);
}
else
{
SendClientMessage(playerid,-1,"Vocк nгo й de nenhuma organizaзгo militar");
}
return 1;
}
Para poupar linhas ao inves de colocar policial coloca 0
coloca assim
CMD:dp(playerid)
{
if(Profissao[playerid] == 0)
{
SetPlayerPos(playerid,1384.2577,10.8203,174.6833);
SendClientMessage(playerid, CINZA, "SERVER: Olб, Vocк й um policial.");
new nome[MAX_PLAYER_NAME], stringnome[200];
GetPlayerName(playerid, nome, sizeof(nome));
format(stringnome, sizeof(stringnome), "SERVER: %s estб trabalhando.",nome);
SendClientMessageToAll(AMARELO, stringnome);
GivePlayerWeapon(playerid, 3, 1);
GivePlayerWeapon(playerid, 22, 1000);
GivePlayerWeapon(playerid, 31, 1000);
GivePlayerWeapon(playerid, 41, 1000);
GivePlayerWeapon(playerid, 45, 1000);
GivePlayerWeapon(playerid, 46, 1000);
}
else
{
SendClientMessage(playerid,-1,"Vocк nгo й de nenhuma organizaзгo militar");
}
return 1;
}