13.06.2013, 13:41
I want to ask how to change the interior when a player enters somewhere inside like the casino.
Example: I went inside the casino and I cannot use my weapons cause it automatically rolled to fist for me so I can't even change to any of the weapons......
Here are my codes
Example: I went inside the casino and I cannot use my weapons cause it automatically rolled to fist for me so I can't even change to any of the weapons......
Here are my codes
pawn Код:
public OnPlayerUpdate(playerid)
{
if(!IsPlayerConnected(playerid)) return 0;
//Weapons in interiors
if(GetPlayerInterior(playerid) != 0 && GetPlayerWeapon(playerid) != 0) {
SetPlayerArmedWeapon(playerid,0);
return 0;
}
return 1;
}