How to do this?
#2

pawn Код:
if (strcmp("/beach", cmdtext, true, 10) == 0)
    {
        SetPlayerPos(playerid, 309.7616,-1798.7969,4.4990);
        SendClientMessage(playerid, 0x00FF00, "Welcome to Los Santo Beach");
        new name[MAX_PLAYER_NAME+1], string[128];
        GetPlayerName(playerid, name, sizeof(name));
        format (string, sizeof(string), "[TP]: %s has teleported to /beach.", name);
        SendClientMessageToAll (0x0000BBAA, string);
        if(IsPlayerInAnyVehicle(playerid) &&  GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
         v = GetPlayerVehicleID(playerid);
         SetVehiclePos(v, 309.7616,-1798.7969,4.4990);
         PutPlayerInVehicle(playerid, v, 0);
        }
        return 1;
    }
// if its the drive :D
Reply


Messages In This Thread
How to do this? - by LeeXian99 - 23.03.2013, 06:12
Re: How to do this? - by Glad2BeHere - 23.03.2013, 06:17
Re: How to do this? - by greentarch - 23.03.2013, 06:19
Re: How to do this? - by LeeXian99 - 23.03.2013, 07:36

Forum Jump:


Users browsing this thread: 1 Guest(s)