18.02.2012, 20:05
Use sscanf plugin, not the pawno version.
Try this:
Try this:
Code:
dcmd_slap( playerid, params[ ] ) { if( PlayerInfo[ playerid ][ pAdmin ] == 0 ) return 0; new targetid = -1; if( sscanf( params, "u", targetid ) ) return SendClientMessage( playerid, COLOR_WHITE, "[{FF0000}USAGE{FFFFFF}]{EFF7FF} /slap <playerid>" ); if( !IsPlayerConnected( targetid ) ) return SendClientMessage( playerid, COLOR_WHITE, "[{FF0000}USAGE{FFFFFF}]{EFF7FF} /slap <playerid>" ); new Float:SLX, Float:SLY, Float:SLZ; GetPlayerPos( targetid, SLX, SLY, SLZ ); SetPlayerPos( targetid, SLX, SLY, SLZ + 10 ); return 1; }