Help with Command
#1

Hello guys!
I'm wanna put that command to only who has the DonateRank up of 3 use!
Can someone help me?
The Command:

Quote:

if (strcmp(cmd, "/comprarv", true) ==0 )
{
if(!IsPlayerInAnyVehicle(playerid)){return 1;}
if(GetCreatorID(vehicleid)!=0)
{
if (strmatch(VehicleSystem[GetCreatorID(vehicleid)][owner],Spielername(playerid))){SendClientMessage(playeri d,WHITE," Dieses Auto gehoert dir schon!");return 1;}
if (strmatch(VehicleSystem[GetCreatorID(vehicleid)][owner],"dealercar"))
{
if(VehicleSystem[GetCreatorID(vehicleid)][preis] < GetPlayerMoney(playerid))
{
strmid(VehicleSystem[GetCreatorID(vehicleid)][owner],Spielername(playerid),0,128,12;
GivePlayerMoney(playerid,-VehicleSystem[GetCreatorID(vehicleid)][preis]);
SendClientMessage(playerid,YELLOW," Se divirta com seu novo carro!");
TogglePlayerControllable(playerid,1);
SaveTool();
}
else
{
SendClientMessage(playerid,WHITE,"Vocк precisa de mais dinheiro!");
}
}
else
{
SendClientMessage(playerid,WHITE,"Esse veiculo nгo estб a venda!");
}
}
else
{
SendClientMessage(playerid,WHITE,"Nгo й um carro compravel!");
}
return 1;
}

Thank you!
Reply


Messages In This Thread
Help with Command - by mjr2006 - 17.08.2009, 21:14
Re: Help with Command - by James_Bauer - 17.08.2009, 21:30
Re: Help with Command - by mjr2006 - 17.08.2009, 21:44
Re: Help with Command - by coole210 - 18.08.2009, 00:17
Re: Help with Command - by James_Bauer - 18.08.2009, 06:40

Forum Jump:


Users browsing this thread: 4 Guest(s)