04.09.2012, 12:57
pawn Код:
CMD:setrpmarks( playerid,params[ ] )
{
new targetid, rpmarks, szName[ 24 ], szOtherName[ 24 ], szStr[ 128 ];
GetPlayerName( playerid,szName,sizeof( szName ) );
if( sscanf( params, "ud", targetid, rpmarks ) ) return SendClientMessage( playerid, White, "USAGE: /setrpmarks [playerid] [marks]" );
GetPlayerName( targetid, szOtherName, sizeof( szOtherName ) );
pInfo[ targetid ][ rpmarks ] = rpmarks;
format( szStr, sizeof( szStr ), "RolePlay Teacher %s has setted your roleplay marks %d", szName, rpmarks );
SendClientMessage( targetid, Yellow, szStr );
format( szStr, sizeof( szStr ), "You've setted %s roleplay marks to %d", szOtherName, rpmarks );
SendClientMessage( playerid, Yellow, szStr );
return 1;
}
Hope this helps.