19.02.2014, 19:33
Helloo every one reading this post !
I hhave a masive problem with my vip system script, its about spawning a car
Every think works okey but then someone destroys me while im in a car and then i have been spawned in a random place and the car is destroyd it is being spawned in the same place where i have uses the command !
The script works when i type /tank im in the tank and every thinks okey i i get carjacked and i type the /tank kicks the carjacker from the car and im in it again but the destroy part doese not work because its alweys spawned in the place i use the command.
There is the script !
I hhave a masive problem with my vip system script, its about spawning a car

Every think works okey but then someone destroys me while im in a car and then i have been spawned in a random place and the car is destroyd it is being spawned in the same place where i have uses the command !
The script works when i type /tank im in the tank and every thinks okey i i get carjacked and i type the /tank kicks the carjacker from the car and im in it again but the destroy part doese not work because its alweys spawned in the place i use the command.
There is the script !
Код:
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] = CreateVehicle(432, pX, pY, pZ, pw, 0, 0, 0);
PutPlayerInVehicle(playerid, myCar[playerid], 0);
GameTextForPlayer(playerid,"~w~Bullet",3000,1);
}
}
}


;(