10.04.2011, 02:40
Hello, I am trying to make a /pickup command like this:
My only problem is there is more then one gunobject how can I make it check which gun object he is standing on? Thanks
pawn Код:
if(strcmp("/pickup", cmdtext, true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(!IsPlayerInVehicle(playerid, GetPlayerVehicleID(playerid)))
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, gunobjectx, gunobjecty, gunobjectz);
{
GivePlayerWeapon(playerid, 23, 10);
}
}
}
}