- 0
Ma puteti scapa si pe mine de aceste erori va rog frumos!!
-
Similar Content
-
- 4 replies
- 333 views
-
Salut,imi apare asta cand pornesc serverul,dar eu am bagat acolo in server.cfg ce e nevoie,imi puteti spune va rog problema ?
By leoo671,
- 0 replies
- 489 views
-
- 9 replies
- 348 views
-
- 3 replies
- 391 views
-
- 1 reply
- 231 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
Guest Bug_Mafia
if(strcmp(cmd,"/buylicense",true)==0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(25.0,playerid,1492.6129,1308.1138,1093.2937))
{
new x_nr[256];
x_nr = strtok(cmdtext, idx);
if(!strlen(x_nr)) {
SendClientMessage(playerid, COLOR_DBLUE, "|__________________ Licenses __________________|");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "USAGE: /buylicense [name]");
SendClientMessage(playerid, COLOR_YELLOW, "Available names: Driving (500$)");
SendClientMessage(playerid, COLOR_YELLOW, "Available names: Flying (8000$)");
SendClientMessage(playerid, COLOR_YELLOW, "Available names: Sailing (4500$)");
SendClientMessage(playerid, COLOR_YELLOW, "Available names: Fishing (2000$)");
SendClientMessage(playerid, COLOR_YELLOW, "Available names: Gun (15000$)");
SendClientMessage(playerid, COLOR_DBLUE, "|____________________________________________|");
return 1;
}
if(strcmp(x_nr,"Driving",true) == 0)
{
if(PlayerInfo[playerid][pCarLic] < 1)
if(GetPlayerCash(playerid) < 500)
{
format(string, sizeof(string), ".: Driving License costs $500, You don't have enough :.");
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
if(PlayerInfo[playerid][pCarLic] == 1)
{
format(string, sizeof(string), ".: You already have a Driving license :.");
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
PlayerInfo[playerid][pCarLic] = 1;
SendClientMessage(playerid,COLOR_WHITE,".: You can now drive cars :.");
GivePlayerCash(playerid,-500);
}
else if(strcmp(x_nr,"Flying",true) == 0)
{
if(PlayerInfo[playerid][pFlyLic] < 1)
if(GetPlayerCash(playerid) < 8000)
{
format(string, sizeof(string), ".:Flying License costs $8000, You don't have enough :.");
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
if(PlayerInfo[playerid][pFlyLic] == 1)
{
format(string, sizeof(string), ".: You already have a Flying license :.");
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
PlayerInfo[playerid][pFlyLic] = 1;
SendClientMessage(playerid,COLOR_WHITE,".: You can now drive Helys and Planes :.");
GivePlayerCash(playerid,-8000);
}
else if(strcmp(x_nr,"Sailing",true) == 0)
{
if(PlayerInfo[playerid][pBoatLic] < 1)
if(GetPlayerCash(playerid) < 4500)
{
format(string, sizeof(string), ".:Sailing License costs $4500, You don't have enough :.");
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
if(PlayerInfo[playerid][pBoatLic] == 1)
{
format(string, sizeof(string), ".: You already have a Sailing license :.");
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
PlayerInfo[playerid][pBoatLic] = 1;
SendClientMessage(playerid,COLOR_WHITE,".: You can now drive Boats :.");
GivePlayerCash(playerid,-4500);
}
else if(strcmp(x_nr,"Fishing",true) == 0)
{
if(PlayerInfo[playerid][pFishLic] < 1)
if(GetPlayerCash(playerid) < 2000)
{
format(string, sizeof(string), ".:Fishing License costs $2000, You don't have enough :.");
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
if(PlayerInfo[playerid][pFishLic] == 1)
{
format(string, sizeof(string), ".: You already have a Fishing license :.");
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
PlayerInfo[playerid][pFishLic] = 1;
SendClientMessage(playerid,COLOR_WHITE,".: You can now Fish Safe :.");
GivePlayerCash(playerid,-2000);
}
else if(strcmp(x_nr,"Gun",true) == 0)
{
if(PlayerInfo[playerid][pGunLic] < 1)
if(GetPlayerCash(playerid) < 15000)
{
format(string, sizeof(string), ".:Gun License costs $15000, You don't have enough :.");
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
if(PlayerInfo[playerid][pGunLic] == 1)
{
format(string, sizeof(string), ".: You already have a Gun license :.");
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
PlayerInfo[playerid][pGunLic] = 1;
SendClientMessage(playerid,COLOR_WHITE,".: You can now have a Gun Safe :.");
GivePlayerCash(playerid,-15000);
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You are not in the City Hall !");
return 1;
}
}//not connected
return 1;
}
Link to comment
Share on other sites
18 answers to this question
Recommended Posts