13.05.2013, 14:11
Hello There !
I would like to get a little help from you guys
I just got stucked somewhere i hope someone from you can help me out
I want the player should stand at the back of the vehicle and then only the system should work currently it works near the door of the vehicle
Here is my code please help me
I would like to get a little help from you guys

I just got stucked somewhere i hope someone from you can help me out
I want the player should stand at the back of the vehicle and then only the system should work currently it works near the door of the vehicle
Here is my code please help me

pawn Код:
if((newkeys & KEY_FIRE) && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
new Float:cx, Float:cy, Float:cz;
GetVehiclePos(oldcar[playerid], cx, cy, cz);
if(IsPlayerInRangeOfPoint(playerid, 3, cx, cy, cz) && GetVehicleModel(oldcar[playerid]) == 408)
{
if(PlayerInfo[playerid][pJob] == 25 && HoldingObject[playerid] == 2)
{
GivePlayerCash(playerid, 30);
new string[256];
RemovePlayerAttachedObject(playerid, 0);
HoldingObject[playerid] = 0;
format(string, sizeof(string), " %s places the trash bag into the garbage truck", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);