21.05.2011, 18:52
with GetPlayerPos you allways use like this:
but if i want to get the playerposition from the playerid i enter in the command /destroy
this is the code :
Please Help me !!!!!!!
Code:
GetPlayerPos(playerid, x, y, z);
this is the code :
Code:
dcmd_destroy(playerid, params[]) { new Float:x, Float:y, Float:z; #pragma unused params if(!IsPlayerAdmin(playerid)) { SendClientMessage(playerid, 0xAA3333AA, "this command is for admins only"); } if(IsPlayerAdmin(playerid)) { GetPlayerPos(playerid, x, y, z); CreateExplosion(x, y, z, 7, 10.0); CreateExplosion(x, y, z, 7, 10.0); } return 1; }