if(strcmp(cmd, "/learngrabkick", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(GetPlayerMoney(playerid) < 5345)
{
SendClientMessage(playerid, COLOR_GREY, "You don't have enough money for a grabkick lessons");
return 1;
}
if (!PlayerToPoint(10, playerid,773.7303,1.4662,1001.1402))//elbow
{
if(PlayerInfo[playerid][grabkick] == 0)
{
SendClientMessage(playerid, COLOR_YELLOW, "Congratulations!You learned grabkick /styles to use it");
PlayerInfo[playerid][grabkick] = 1;
SafeGivePlayerMoney(playerid, - 5345);
OnPlayerUpdate(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "You Already know how to grabkick!");
}
}
}
return 1;
}
if(strcmp(cmd, "/learngrabkick", true) == 0) { if(IsPlayerConnected(playerid)) { if(GetPlayerMoney(playerid) < 5345) { SendClientMessage(playerid, COLOR_GREY, "You don't have enough money for a grabkick lessons"); } else { if(PlayerInfo[playerid][grabkick] == 0) { SendClientMessage(playerid, COLOR_YELLOW, "Congratulations! You learned grabkick /styles to use it"); PlayerInfo[playerid][grabkick] = 1; SafeGivePlayerMoney(playerid, - 5345); OnPlayerUpdate(playerid); } else { SendClientMessage(playerid, COLOR_GRAD1, "You Already know how to grabkick!"); } } return 1; }
if(!PlayerToPoint(10, playerid,773.7303,1.4662,1001.1402))//elbow
Originally Posted by Niixie
what do you use
Код:
if(!PlayerToPoint(10, playerid,773.7303,1.4662,1001.1402))//elbow |
if(strcmp(cmd, "/learngrabkick", true) == 0) { if(IsPlayerConnected(playerid)) { if(!PlayerToPoint(10, playerid,773.7303,1.4662,1001.1402))//elbow { if(GetPlayerMoney(playerid) < 5345) { SendClientMessage(playerid, COLOR_GREY, "You don't have enough money for a grabkick lessons"); } else { if(PlayerInfo[playerid][grabkick] == 0) } SendClientMessage(playerid, COLOR_YELLOW, "Congratulations! You learned grabkick /styles to use it"); PlayerInfo[playerid][grabkick] = 1; SafeGivePlayerMoney(playerid, - 5345); OnPlayerUpdate(playerid); { else } SendClientMessage(playerid, COLOR_GRAD1, "You Already know how to grabkick!"); return 1; } } return 1; }