14.07.2010, 22:40
So uma noзгo :
Afe... uma hora, se eu tivesse paciencia agora,eu faria um Fs disso =d
Код:
new venda; // topo venda = CreatePickup(model,type,x,y,z)
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp("/comprar", cmdtext, true) == 0) { if(IsPlayerInRangeOfPoint(playerid,distanciaDoPickup,x,y,z)) ShowPlayerDialog(playerid, 2, "lol", "lol", \infernus\n....);
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 1) { if(response) { if(listitem == 1) { new Float:x,Float:y,Float:z,carro; if(GetPlayerMoney(playerid) >= 5000) GetPlayerPos(playerid,Float:x,Float:y,Float:z); carro = CreateVehicle(id,Float:x,Float:y,Float:z); PutPlayerInVehicle(carro); GivePlayerMoney(playerid, -5000); } else SendClientMessage(playerid,Cor,"your cash isn't even enough"); return 1; }