01.05.2009, 15:29
Problem fixed
Thanks to Pandabeer1337
Thanks to Pandabeer1337
Originally Posted by ArTisT
Quote:
|
if(strcmp(cmdtext, "/usedrugs", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pDrugs] > 1)
{
new Float:health;
GetPlayerHealth(playerid, health);
SetPlayerHealth(playerid, health + 10.0);
SendClientMessage(playerid, COLOR_GREY, " 2 Drug Grams used !");
PlayerInfo[playerid][pDrugs] -= 2;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You dont have any Drug Grams left !");
}
return 1;
}
if(IsPlayerConnected(playerid))
Originally Posted by Khelif
Код:
if(IsPlayerConnected(playerid)) |