10.04.2009, 10:03
I do this and compile everything working than I go in game to city hall an show me everything its very nice than I type /buylicense flying
nothin like I dodnt wroted a command...
nothin like I dodnt wroted a command...
Код:
if(strcmp(cmd, "/buylicense flying", true) == 0)
{
if(PlayerInfo[playerid][pFlyLic] == 0)
{
if(PlayerToPoint(3.0,playerid, 369.4747,186.4138,1008.3893))
{
if(GivePlayerMoney(playerid) >= 20000)
{
GivePlayerMoney(playerid, - 20000);
SendClientMessage(playerid,COLOR_LIGHTGREEN,"Kupio si Fly licensu..");
PlayerInfo[playerid][pFlyLic] = 1;
}
else
{
SendClientMessage(playerid,COLOR_LIGHTGREEN,"Nemas Novca!");
}
}
else
{
SendClientMessage(playerid,COLOR_LIGHTGREEN,"Pa vec imas tu licensu!");
}
}
return 1;
}

