19.02.2014, 21:44
Hello, try this :
Код:
YCMD:tank(playerid, params[], help) { #pragma unused help if(P_Data[playerid][VIP] < 2) return SCM(playerid, COLOR_RED, "Musisz byc Silver VIP graczem aby uzywac tej komendy!"); { if(myCar[playerid] != 0) DestroyVehicle(myCar[playerid]); if(IsPlayerInAnyVehicle(playerid)) SendClientMessage(playerid,0x00FF00AA,"You're in a vehicle."); else { new Float:pX,Float:pY,Float:pZ,Float:pw; GetPlayerPos(playerid, pX,pY,pZ); GetPlayerFacingAngle(playerid, pw); myCar[playerid] = CreateVehicleEx(432, pX, pY, pZ, pw, 0, 0, 0); PutPlayerInVehicle(playerid, myCar[playerid], 0); GameTextForPlayer(playerid,"~w~Bullet",3000,1); } } }