Jump to content
  • 0

Restrictie.


ciprian2013

Question

Problema intalnita (descriere):Cum as putea sa fac la comanda /buyvehicle sa imi verifice ca jucatorul x are deja un vehicul cumparat,si sa ii trimita un mesaj.
Ero(area / rile) / warning-(ul / urile)://
Liniile de cod / sursa / script-ul(obligatoriu):

CMD:buyvehicle(playerid, params[])
{
	if ( GetPVarInt( playerid, "AccountLocked" ) == 1 )
 	return SCM( playerid, COLOR_WHITE, "Contul tau este blocat, deblocheaza-l folosind comanda /unlockacc." );
	if(gLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_ERROR, "You are not logged in.");
	if(IsPlayerInRangeOfPoint(playerid,5.0,2132.0627,-1150.6255,24.1395))
	{
		ShowPlayerDialog(playerid, DIALOG_DSG, DIALOG_STYLE_LIST, "Buy a vehicle", "Cheap cars\nRegular cars\nExpensive cars\nBikes\nAir Vehicles","Select", "Cancel");
	}
	else SendClientMessage(playerid, COLOR_ERROR,"You are not at dealership.");
	return 1;
}


 

Edited by ciprian2013
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Un singur slot.

		    new playerip[16];
			GetPlayerIp(targetid,playerip,sizeof(playerip));
		    format(gString, sizeof(gString), "House:[%d] Business:[%d] Vehicle:[%d] Interior:[%d] VirtualWorld:[%d] E-Mail:[%s]", PlayerInfo[targetid][pHouseKey], PlayerInfo[targetid][pBizzKey], GetSpawnedVeh(targetid), GetPlayerInterior(targetid), GetPlayerVirtualWorld(targetid), PlayerInfo[targetid][pEmail]);
			SendClientMessage(playerid, COLOR_LIGHTRED, gString);
		}
		SendClientMessage(playerid, COLOR_SERVER,"_______________________________________");
	}

	return 1;
}

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.