11.07.2015, 06:33
if (!strcmp("/laserbuy", cmdtext, true))
{
if(UserData[playerid][Laser]) return SendClientMessage(playerid, -1, "{FF0000}!יש לך מערכת לייזר");
if(UserGameData[playerid][Money] < 100000) return SendClientMessage(playerid, -1, "{FF0000}!($100"); <-----
SetMoney(playerid, UserGameData[playerid][Money]-100000);
UserData[playerid][Laser] = true;
SetPVarInt(playerid, "laser", 1);
SetPVarInt(playerid, "color", GetPVarInt(playerid, "color"));
SendClientMessage(playerid, -1, "{FF0000}!קנית לייזר");
}
its show me every time this messege (line 4)
pls help tnx
{
if(UserData[playerid][Laser]) return SendClientMessage(playerid, -1, "{FF0000}!יש לך מערכת לייזר");
if(UserGameData[playerid][Money] < 100000) return SendClientMessage(playerid, -1, "{FF0000}!($100"); <-----
SetMoney(playerid, UserGameData[playerid][Money]-100000);
UserData[playerid][Laser] = true;
SetPVarInt(playerid, "laser", 1);
SetPVarInt(playerid, "color", GetPVarInt(playerid, "color"));
SendClientMessage(playerid, -1, "{FF0000}!קנית לייזר");
}
its show me every time this messege (line 4)
pls help tnx