11.11.2011, 23:26
Hello, I got a pickup problem that I haven't had before...
well the problem is that when I enter one pickup it does not do what I want it to do...
look:
As you can see I made a little hidden package game, and also a cannon thing but when I pickup the cannonpickup I get the messages from the Hidden pacakge hunting... any help?
thanks inadvance
rep for helper
well the problem is that when I enter one pickup it does not do what I want it to do...
look:
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
new string[128];
if(pickupid == PackagePickup)
return PackageHuntFound(playerid);
if(pickupid == cannonpickup)
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOR_RED,"You need to be in a car to use the cannon!");
GameTextForPlayer(playerid,"~r~G~g~e~y~t ~p~R~r~e~g~a~y~d~b~y!", 3000, 4);
SetTimerEx("cannongatesopen", 3000, false, "i", playerid); //3 seconds
TogglePlayerControllable(playerid,0);
}
return 1;
}
thanks inadvance
rep for helper