27.11.2015, 23:51
Код:
SpawnVipVehicle(playerid,level,vehicleid ) { if(pInfo[playerid][Donator] < level )return SCM(playerid,COLOR_AQUA, "You are not authorized to use this command."); if(SpawnedVIP[playerid] == 1 && myCar[playerid] == VipVeh[playerid]) DestroyVehicle(myCar[playerid]) ,SpawnedVIP[playerid]=0; if(IsPlayerInAnyVehicle(playerid))return SCM(playerid,0x00FF00AA,NOT_INVEH_MSG); new Float:pX,Float:pY,Float:pZ,Float:pw; GetPlayerPos(playerid, pX,pY,pZ); GetPlayerFacingAngle(playerid, pw); myCar[playerid] = CreateVehicle(vehicleid, pX, pY, pZ, pw, 0, 0, 0); PutPlayerInVehicle(playerid, myCar[playerid], 0); VipVeh[playerid] = GetPlayerVehicleID(playerid); SpawnedVIP[playerid]=1; return 1; } CMD:vheli(playerid, params[])return SpawnVipVehicle(playerid,3,487);
it remove first player vehicle and spawn 2nd one vehicle.......
Why its happening how to Fix that?
Kindly Help.
Thanks.