Help||Command Text
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (!strcmp("/getinf", cmdtext, true))
    {
        new Float:x, Float:y, Float:z;   // You have to define x, y and z as float because they are decimal numbers.
        GetPlayerPos(playerid, x, y, z);
        CreateVehicle(411, x, y, z, 0, 0, 5);
        SendClientMessage(playerid, COLOR_GREEN, "You have been teleported Infernus to your position");
        return 1;
   }   // Also removed an extra brace + return 1 as they were unecessary.
   return 0;
}
Reply


Messages In This Thread
Help||Command Text - by wakeuptomer - 08.09.2013, 13:06
Re: Help||Command Text - by Dragonsaurus - 08.09.2013, 13:12
Re: Help||Command Text - by Konstantinos - 08.09.2013, 13:18
Re: Help||Command Text - by wakeuptomer - 08.09.2013, 13:34
Re: Help||Command Text - by Konstantinos - 08.09.2013, 13:39
Re: Help||Command Text - by wakeuptomer - 08.09.2013, 13:49
Re: Help||Command Text - by Konstantinos - 08.09.2013, 13:56

Forum Jump:


Users browsing this thread: 1 Guest(s)