GetPlayerPos
#1

with GetPlayerPos you allways use like this:
Code:
GetPlayerPos(playerid, x, y, z);
but if i want to get the playerposition from the playerid i enter in the command /destroy
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;
}
Please Help me !!!!!!!
Reply


Messages In This Thread
GetPlayerPos - by PhantomDot1 - 21.05.2011, 18:52
Re: GetPlayerPos - by iJumbo - 21.05.2011, 18:55
Re: GetPlayerPos - by KoczkaHUN - 21.05.2011, 18:57
Re: GetPlayerPos - by iJumbo - 21.05.2011, 18:59
Re: GetPlayerPos - by KoczkaHUN - 21.05.2011, 19:02
Re: GetPlayerPos - by iJumbo - 21.05.2011, 19:12

Forum Jump:


Users browsing this thread: 1 Guest(s)