06.05.2013, 16:48
PHP код:
if (strcmp(cmd, "/handsup", true) == 0)
{
if ( IsACop (playerid ) )
return SendClientMessage ( playerid, -1, "[ ERRO ]: Vocк й policial nгo pode usar este comando" ) ;
GetPlayerName ( playerid, sendername, sizeof ( sendername ) ) ;
format ( string, sizeof ( string ), "O Suspeito(a) %s digitou /handsup !.", sendername ) ;
ProxDetector ( 30.0, playerid, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE ) ;
SetPlayerSpecialAction ( playerid, SPECIAL_ACTION_HANDSUP ) ;
return true;
}