MartisK

Some shit

Feb 22nd, 2014
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.25 KB | None | 0 0
  1. if(dialogid == 1396)
  2. {
  3.     if(response)
  4.     {
  5.         new id = playerDB[playerid][rid][0];
  6.         new aName[MAX_PLAYER_NAME], pName[ MAX_PLAYER_NAME ];
  7.         GetPlayerName(id, pName, MAX_PLAYER_NAME);
  8.         GetPlayerName( playerid, aName, MAX_PLAYER_NAME );
  9.         new msg[128];
  10.         format(msg,sizeof(msg), "Zaidejas %s sutiko buti perkeliamas.", pName );
  11.         SendClientMessage(id, GREEN, msg);
  12.         format(msg,sizeof(msg), "Buvai perkeltas pas zaideja %s", aName );
  13.         SendClientMessage(playerid, GREEN, msg);
  14.         SetPlayerInterior(playerid,GetPlayerInterior(id));
  15.         if(!IsPlayerInAnyVehicle(playerid))
  16.         {
  17.             new Float:tempcoo[3];
  18.             GetPlayerPos(id,tempcoo[0],tempcoo[1],tempcoo[2]);
  19.             SetPlayerPos(playerid,tempcoo[0],tempcoo[1],tempcoo[2]);
  20.             SetCameraBehindPlayer(playerid);
  21.         }
  22.         new Float:tempcoh[3];
  23.         GetPlayerPos(id,tempcoh[0],tempcoh[1],tempcoh[2]);
  24.         new vehicleid = GetPlayerVehicleID(playerid);
  25.         SetVehiclePos(vehicleid,tempcoh[0],tempcoh[1],tempcoh[2]);
  26.         return true;
  27.     }
  28.     else if( !response )
  29.     {
  30.         new id = playerDB[playerid][rid][0];
  31.         new vardas[MAX_PLAYER_NAME];
  32.         GetPlayerName(playerid,vardas,MAX_PLAYER_NAME);
  33.         new msg[128]; format(msg,sizeof(msg), "Zaidejas %s nesutiko buti perkeliamas.",vardas);
  34.         SendClientMessage(id, RED, msg);
  35.         return true;
  36.     }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment