17.03.2013, 21:59
(
Последний раз редактировалось Rhino; 17.03.2013 в 22:53.
)
Hi I have a problem with a FS "Drop Gun"
When I try to pick the gun is on the floor, the object this is not destroyed nor gives me the gun
It is a FS that was around here that the forum agrege and modify.
If you know how to fix it would be fantastic : D
My inglish is very bad, because I speak spanish xd
When I try to pick the gun is on the floor, the object this is not destroyed nor gives me the gun
Код HTML:
CMD:recojerarma(playerid, params[]) { new string[128]; new playername[MAX_PLAYER_NAME]; new DropObject[MAX_DROP_ITEMS]; for(new i = 0; i < sizeof(DropInfo); i++) { if (IsPlayerInRangeOfPoint(playerid, 2.0,DropInfo[i][DropGunPosX],DropInfo[i][DropGunPosY],DropInfo[i][DropGunPosZ])) { if(GetPlayerVirtualWorld(playerid) == DropInfo[i][DropGunVWorld] && GetPlayerInterior(playerid) == DropInfo[i][DropGunVWorld]) { GetPlayerName(playerid, playername, sizeof(playername)); DestroyDynamicObject(DropObject[i]); DropInfo[i][DropGunPosX] = 0.0; DropInfo[i][DropGunPosY] = 0.0; DropInfo[i][DropGunPosZ] = 0.0; DropInfo[i][DropGunAmmount][0] = 0; DropInfo[i][DropGunAmmount][1] = 0; GiveZaiatWeapon(playerid,DropInfo[i][DropGunAmmount][0],DropInfo[i][DropGunAmmount][1]); format(string, sizeof(string), "* %s recoje el arma del suelo.", RPN(playerid)); SendNearbyMessage(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE); return 1; } } } return 1; }
If you know how to fix it would be fantastic : D
My inglish is very bad, because I speak spanish xd