Teleport cmd
#1

Hi, im kinda stuck, i cant seem to find the problem in my code:

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/roof", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, 1128.9464,-1479.8096,116.2813,0.3329);
return 1;
}
return 0;
}

Is it wrong with the co-ordinates? how do i know what parts of the co-ordinates to take? Help me please!
Reply
#2

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
     if(!strcmp("/roof", cmdtext))
     {
         SetPlayerPos(playerid, 1128.9464,-1479.8096,116.2813);
         SetPlayerFacingAngle(playerid,0.3329);
         return 1;
     }
     return 0;
}
Reply
#3

Just a heads up, if I were you I'd get using either y_ccommands or zcmd as soon as pos.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)