27.04.2009, 18:40
Do you use my script, or you want to reproduce how i did it?
If using my script, if i remember it will be something like this, in your gamemode:
If you want to reproduce, look the script and copy what you want.. it's simple to understand.
If using my script, if i remember it will be something like this, in your gamemode:
pawn Code:
public OnPlayerPressButton(playerid, buttonid)
{
if (buttonid == button_id_of_this_door)
{
if (Team[playerid] == TEAM_FBI)
//open door
else
//send message "You aren't an agent of the FBI!"
return true;
}
return false;
}