18.02.2012, 15:49
pawn Code:
dcmd_slap( playerid, params[ ] )
{
if( PlayerInfo[ playerid ][ pAdmin ] == 0 ) return SendClientMessage( playerid,COLOR_WHITE,"SERVER: Unknown command." );
new targetid;
if( sscanf( params, "r", targetid ) ) return SendClientMessage( playerid, COLOR_WHITE, "{FFFFFF}[{FF0000}USAGE{FFFFFF}]{EFF7FF} /slap <playerid>" );
if( targetid == INVALID_PLAYER_ID ) return SendClientMessage( playerid, COLOR_WHITE, "{FFFFFF}[{FF0000}ERROR{FFFFFF}]{EFF7FF} Inactive player." );
new Float:SLX, Float:SLY, Float:SLZ;
GetPlayerPos( targetid, SLX, SLY, SLZ );
SetPlayerPos( targetid, SLX, SLY, SLZ + 10 );
return 1;
}