/setpos help +REP
#1

Script
Код:
CMD:setpos(playerid,params[])
{
	if(!IsPlayerAdmin(playerid))return SendClientMessage(playerid,0xFF0000FF,"<!>You are not authorized to use this command!");
	new Float:x,Float:y,Float:z;
	if(sscanf(params,"uii",x,y,z))return SendClientMessage(playerid,COL_GREEN,"USAGE: /setpos [x] [y] [z]");
	SetPlayerPos(playerid,x,y,z);
	return 1;
}
the cmd is supposed to work like the following: i write the x/y/z position and i get teleported there , i tested it with /setpos 0 0 0 and it worked , but when i do anything other than 0 0 0 i still teleport to 0 0 0 any help ?

Thanks
Reply


Messages In This Thread
/setpos help +REP - by YoussefHammad - 14.08.2015, 19:58
Re: /setpos help +REP - by iTakelot - 14.08.2015, 20:06
Re: /setpos help +REP - by jlalt - 14.08.2015, 20:08
Re: /setpos help +REP - by UnDetectable - 14.08.2015, 20:10
Re: /setpos help +REP - by YoussefHammad - 14.08.2015, 20:11
Re : /setpos help +REP - by nicolaskettler - 14.08.2015, 20:52

Forum Jump:


Users browsing this thread: 1 Guest(s)