03.05.2016, 19:13
Galera seguinte , quando o player do meu sv digita /kitsociopremium ou /kitsvip o jogo dele para
serб q qual o problema q ta no codigo
/kitsociopremium :
/kitsvip :
serб q qual o problema q ta no codigo
/kitsociopremium :
pawn Код:
CMD:kitsociopremium(playerid, params[])
{
if(gettime() < GetPVarInt(playerid, "VarDano"))
return SendClientMessage(playerid, COLOR_GRAD1," Vocк sу poderб equipar 3 minutos apуs tomar dano de alguйm !");
new string[128];
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo[playerid][pVIP] == 6)
{
format(string, sizeof string, "{FFFFFF}[Atenзгo]: %s {33AA33}pegou seu Kit {FFFFFF}Sуcio Premium", sendername);
SendClientMessageInRange(30.0, playerid, string, 0xC2A2DAAA,0xC2A2DAAA,0xC2A2DAAA,0xC2A2DAAA,0xC2A2DAAA);
//SendClientMessageToAll(COLORGZ_EXE, string);
ResetPlayerWeapons(playerid);
TempDropArmasBody[playerid] = 0;
GivePlayerWeapon(playerid, 24, 400);
GivePlayerWeapon(playerid, 45,1);
GivePlayerWeapon(playerid, 16, 16);
GivePlayerWeapon(playerid, 31, 500);
GivePlayerWeapon(playerid, 29, 500);
GivePlayerWeapon(playerid, 25, 200);
GivePlayerWeapon(playerid, 34, 50);
GivePlayerWeapon(playerid, 4, 1);
GivePlayerWeapon(playerid, 36, 2);
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Vocк pegou o seu Kit Sуcio Premium.");
return true;
}
else
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк nгo й um Sуcio Premium");
return true;
}
}
pawn Код:
CMD:kitsvip(playerid, params[])
{
if(gettime() < GetPVarInt(playerid, "VarDano"))
return SendClientMessage(playerid, COLOR_GRAD1," Vocк sу poderб equipar 3 minutos apуs tomar dano de alguйm !");
new string[128];
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo[playerid][pVIP] == 2)
{
format(string, sizeof string, "[SUPER-VIP]: %s pegou seu Kit SUPER-VIP.", sendername);
SendClientMessageToAll(COLORGZ_EXE, string);
ResetPlayerWeapons(playerid);
TempDropArmasBody[playerid] = 0;
GivePlayerWeapon(playerid, 45,1);
GivePlayerWeapon(playerid, 16, 16);
GivePlayerWeapon(playerid, 24, 350);
GivePlayerWeapon(playerid, 31, 500);
GivePlayerWeapon(playerid, 29, 500);
GivePlayerWeapon(playerid, 25, 200);
GivePlayerWeapon(playerid, 4, 1);
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Vocк pegou o seu Kit SUPER-VIP.");
return true;
}
else
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк nгo й um SUPER-VIP.");
return true;
}
}