16.04.2013, 01:40
PHP Code:
COMMAND:congelar ( playerid, params[] )
{
static
xCelulas [ 100 ],
xID,
xCongelou [ 24 ],
xCongelado [ 24 ]
;
GetPlayerName ( playerid, xCongelou, 24 ) ;
GetPlayerName ( xID, xCongelado, 24 ) ;
if ( sscanf ( params, "u", xID ) )
return SendClientMessage ( playerid, -1, "[ USE ]: /congelar [ID]" ) ;
TogglePlayerControllable ( playerid, 0 ) ;
format ( xCelulas, sizeof ( xCelulas ), "%s Foi congelado pelo adminitrador %s", xCongelado, xCongelou ) ;
SendClientMessageToAll ( -1, xCelulas ) ;
SendClientMessage ( xID, -1, "Vocк foi congelado" ) ;
return 1;
}