12.05.2009, 16:23
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
if(GetPlayerInterior(playerid) == 3) //Change interior to suit you (change the 3)
{
//command
}
else
{
SendClientMessage(playerid, 0xFF00FFFF, "You're not in the right interior, sorry");
}
}
return 0;
}