21.02.2012, 13:31
Try this.
pawn Код:
CMD:911( playerid, params[] )
{
//911 system
if( isnull( params ) )
return SendClientMessage( playerid, COLOR_LIGHTBLUE, "Usage: /911 [Message and Location]" );
new
sendername[ 24 ],
string[ 128 ],
;
GetPlayerName( playerid, sendername, 24 );
SendClientMessage( playerid, COLOR_GOLD, "[INFO]You have just called 911. Please Remain at your Location and wait." );
for( new a, b = GetMaxPlayers(); a < b; a++ )
{
if( !IsPlayerConnected( a ) )
continue;
switch( GetPlayerSkin( a ) )
{
case 285, 282, 281, 283, 288, 278, 275, 279, 277, 274, 276:
{
SendClientMessage( i, COLOR_GREY, "-------------------------------------------------------------------------------------------------" );
SendClientMessage( i, COLOR_ROYALBLUE, "DPS AUTOMATED DISPATCH" );
SendClientMessage( i, COLOR_GREY, "Be advised. The following is a 911 call relay." );
format( string, 128, "Caller name: %s", sendername );
SendClientMessage( i, COLOR_GREY, string );
format( string, 128, "Quoted informations: %s", params );
SendClientMessage( i, COLOR_GREY, string );
SendClientMessage( i, COLOR_GREY, "Suggested action: Get to the scene for a verify of the call." );
SendClientMessage( i, COLOR_GREY, "Call code: Unknown." );
SendClientMessage( i, COLOR_GREY, "-------------------------------------------------------------------------------------------------" );
SetPlayerMarkerForPlayer( playerid, i, 0xFF0000FF );
}
}
}
return 1;
}