[POMOC] teleport

Započeo MosT_WanteD, Septembar 26, 2010, 18:06:50 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

    ev ovo mi je port za dm zonu /bazuka ali kako da stavim da mi se spawna igrac na vise mjesta na razlicitim kordiinatama msm jer neki cekaju pa odma ubiju a nmg kaznjavat nekoga zbog toga evo komanda
if(strcmp(cmd, "/bazuka", true) == 0)
    {
        new hmm[MAX_PLAYER_NAME];
          ResetPlayerWeapons(playerid);
      SetPlayerArmour(playerid,100);
      SetPlayerHealth(playerid,100);
      GetPlayerName(playerid, hmm, sizeof(hmm));
        SendClientMessageToAll(COLOR_RED, " --------------[CrazY BalkaN [DM] Bazuka Arena]--------------- ");
        format(string, sizeof(string), " %s se portao na Bazuku  !", hmm);
      SendClientMessageToAll(COLOR_GREEN, string);
        GivePlayerWeapon(playerid, 36, 500);
        SendClientMessage(playerid, COLOR_GREEN,"Dobili ste bazuku  zato jer ste napisali /bazuka, SRETNO U BORBI! ");
        new cartype = GetPlayerVehicleID(playerid);
        SetPlayerInterior(playerid,0);
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
            SetPlayerPos(playerid, -337.3244,1542.9196,75.5625);
        }
        else if(IsPlayerInVehicle(playerid, cartype) == 1)
        {
            SetVehiclePos(cartype,-337.3244,1542.9196,75.5625);
            SetVehicleZAngle(cartype, 30.6101);
        }
             else
        {
             SetPlayerPos(playerid,-337.3244,1542.9196,75.5625);
             GameTextForPlayer(playerid,"Dobro dosli u bazuka  arenu", 2500, 3);
   }
      return 1;
}
hvala unaprijed :'(
LOL