Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(dialogid == 1396)
- {
- if(response)
- {
- new id = playerDB[playerid][rid][0];
- new aName[MAX_PLAYER_NAME], pName[ MAX_PLAYER_NAME ];
- GetPlayerName(id, pName, MAX_PLAYER_NAME);
- GetPlayerName( playerid, aName, MAX_PLAYER_NAME );
- new msg[128];
- format(msg,sizeof(msg), "Zaidejas %s sutiko buti perkeliamas.", pName );
- SendClientMessage(id, GREEN, msg);
- format(msg,sizeof(msg), "Buvai perkeltas pas zaideja %s", aName );
- SendClientMessage(playerid, GREEN, msg);
- SetPlayerInterior(playerid,GetPlayerInterior(id));
- if(!IsPlayerInAnyVehicle(playerid))
- {
- new Float:tempcoo[3];
- GetPlayerPos(id,tempcoo[0],tempcoo[1],tempcoo[2]);
- SetPlayerPos(playerid,tempcoo[0],tempcoo[1],tempcoo[2]);
- SetCameraBehindPlayer(playerid);
- }
- new Float:tempcoh[3];
- GetPlayerPos(id,tempcoh[0],tempcoh[1],tempcoh[2]);
- new vehicleid = GetPlayerVehicleID(playerid);
- SetVehiclePos(vehicleid,tempcoh[0],tempcoh[1],tempcoh[2]);
- return true;
- }
- else if( !response )
- {
- new id = playerDB[playerid][rid][0];
- new vardas[MAX_PLAYER_NAME];
- GetPlayerName(playerid,vardas,MAX_PLAYER_NAME);
- new msg[128]; format(msg,sizeof(msg), "Zaidejas %s nesutiko buti perkeliamas.",vardas);
- SendClientMessage(id, RED, msg);
- return true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment