01.03.2013, 18:18
Denying thats not my code this is
PHP код:
CMD:datguy(playerid, params[])
{
//---------------------[Variables to check Tylers name]-------------------
new sendername[MAX_PLAYER_NAME];
new datguy;
GetPlayerName(playerid, sendername, sizeof(sendername));
if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, RED, "ERROR: You already have a Vehicle");
{
if(strcmp(sendername, "Tyler_Hale", false) == 0)
{
SendClientMessage(playerid,RED,"You can not perform this command you are not Tyler Hale");
}
if(!strlen(params))
{
SendClientMessage(playerid,-1, "Usage: /datguy");
return SendClientMessage(playerid,ORANGE,"Function: Will create datguy car made for Tyler");
}
}
new Float:X,Float:Y,Float:Z,Float:Angle;
GetPlayerPos(playerid,X,Y,Z);
GetPlayerFacingAngle(playerid,Angle);
datguy = SetVehicleNumberPlate(CreateVehicle(545,X,Y,Z,Angle,158,158,-1),"DATGUY");
AddVehicleComponent(datguy,1010);// nitro
AddVehicleComponent(datguy,1076);//wire rims
return 1;
}