givecar command
#2

PHP код:
COMMAND:givecar(playeridparams[])
{
// Check if the player's admin-level is at least 1
if (APlayerData[playerid][PlayerLevel] >= 1)
{
}
else
return 
0;
new 
idcarid; new FloatxFloatyFloatzFloatrvehicle;
if(
sscanf(params"ui"idcarid)) return SendClientMessage(playerid0xFFFFFFF,"Hata! Komutun kullanэmэ: /givecar [Playerid] [Carid]");
if(!
IsPlayerConnected(id)) return SendClientMessage(playerid0xFFFFFFF,"Bцyle bir oyuncu bulunamadэ!");
if(
carid 400 || carid 611) return SendClientMessage(playerid0xFFFFFFF"Araз id leri 400 ile 611 arasэnda olmalэdэr.");
if(
IsPlayerInAnyVehicle(playerid))
{
DestroyVehicle(GetPlayerVehicleID(id));
}
GetPlayerPos(id,x,y,z);
GetPlayerFacingAngle(id,r);
vehicle CreateVehicle(carid,x,y,z,r,1,1,300);
PutPlayerInVehicle(id,vehicle,0);
return 
1;

Try this.
Reply


Messages In This Thread
givecar command - by ultrAslan - 10.03.2015, 19:01
Re: givecar command - by TuNiSiAnO1 - 10.03.2015, 19:06
Re: givecar command - by CalvinC - 10.03.2015, 19:19
AW: givecar command - by ultrAslan - 12.03.2015, 09:50
Re: givecar command - by CalvinC - 12.03.2015, 10:08
AW: Re: givecar command - by ultrAslan - 12.03.2015, 10:27
Re: givecar command - by CalvinC - 12.03.2015, 10:47

Forum Jump:


Users browsing this thread: 1 Guest(s)