Problem
#7

Quote:

CMD:buycar(playerid, params[])
{
new string[128];
if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
if(!IsPlayerInRangeOfPoint(playerid, 2, 2427.5811,111.4386,26.4844)) return SendClientMessage(playerid, COLOR_GREY, "You are not near the vehicles dealership.");
if(PlayerInfo[playerid][pVIP] >= 2)
{
if(PlayerInfo[playerid][vModel] && PlayerInfo[playerid][vVModel])
{
format(string, sizeof(string), "You already own vehicles ID %d and %d.", PlayerInfo[playerid][pVeh], PlayerInfo[playerid][pVVeh]);
SendClientMessage(playerid, COLOR_GREY, string);
return 1;
}
else ShowDialog(playerid, 10);
return 1;
}
if(PlayerInfo[playerid][vModel])
{
format(string, sizeof(string), "You already own vehicle ID %d.", PlayerInfo[playerid][pVeh]);
SendClientMessage(playerid, COLOR_GREY, string);
return 1;
}
ShowDialog(playerid, 10);
return 1;
}

there
Reply


Messages In This Thread
Problem - by Stefan_Merce - 05.01.2013, 18:49
Re: Problem - by Stefan_Merce - 05.01.2013, 19:06
Re: Problem - by DJGama101 - 05.01.2013, 19:09
Re: Problem - by azzerking - 05.01.2013, 19:10
Re: Problem - by DiGiTaL_AnGeL - 05.01.2013, 19:11
Re: Problem - by aslan890 - 05.01.2013, 19:12
Re: Problem - by Stefan_Merce - 05.01.2013, 19:29
Re: Problem - by aslan890 - 05.01.2013, 19:31
Re: Problem - by Stefan_Merce - 05.01.2013, 19:42
Re: Problem - by aslan890 - 05.01.2013, 19:52

Forum Jump:


Users browsing this thread: 3 Guest(s)