[Pedido] comando
#3

Algo do tipo ?

pawn Код:
new gVeh;

public OnPlayerCommandText (playerid, cmdtext[])
{
    if (!strcmp(cmdtext,"/moto"))
    {
        new Float:x, Float:y, Float:z;
        GetPlayerPos (playerid, x, y, z);
        gVeh = CreateVehicle (522, x, y, z, 0.0, -1, -1, 9999999);
        PutPlayerInVehicle (playerid, gVeh, 0);
        return 1;
    }
    return 0;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
    if (vehicleid == gVeh)
    {
        DestroyVehicle (gVeh);
        return 1;
    }
    return 0;
}
Reply


Messages In This Thread
comando - by [toːkʲoː]_Shinjuku_.] - 25.10.2012, 00:56
Re: comando - by Diogo123 - 25.10.2012, 01:39
Re: comando - by WLSF - 25.10.2012, 01:44
Re: comando - by [toːkʲoː]_Shinjuku_.] - 25.10.2012, 01:44
Re: comando - by ForT - 25.10.2012, 01:52

Forum Jump:


Users browsing this thread: 2 Guest(s)