Warnings
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/nrg1", cmdtext, true, 10) == 0)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            SetVehiclePos(GetPlayerVehicleID(playerid), 2857.31,-1960.78,10.9376);
            SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
            LinkVehicleToInterior(GetPlayerVehicleID(playerid) , 0);
        }
        else
        {
            SetPlayerPos(playerid, 2857.31,-1960.78,10.9376);
            SetPlayerFacingAngle(playerid, 0.0);
        }
        SetPlayerInterior(playerid, 0);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, " Welcome to Nrg1!");
        return 1;
    }
    return 0;
}
Try this code.

Use [pawn ] [/pawn ] for code.
Reply


Messages In This Thread
Warnings - by yoan103 - 03.03.2011, 16:48
Respuesta: Warnings - by Code8976Man - 03.03.2011, 16:51
Re: Warnings - by yoan103 - 03.03.2011, 16:52

Forum Jump:


Users browsing this thread: 1 Guest(s)