29.11.2013, 18:52
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if( ( newkeys & KEY_YES ) && !( oldkeys & KEY_YES ) )
{
// code...
}
return 1;
}
You may be able to do something like:
pawn Код:
CallLocalFunction( "OnPlayerCommandText", "is", playerid, "/robplace" );