Quote:
Originally Posted by ipsLeon
Cуdigo?
|
Код:
new carro[MAX_PLAYERS];
new Float:CX[MAX_PLAYERS], Float:CY[MAX_PLAYERS], Float:CZ[MAX_PLAYERS], Float:CA[MAX_PLAYERS];
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/cv", cmdtext, true, 10) == 0)
{
new string[256];
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,sizeof(pName));
format(string, sizeof(string), "[SG-VEICULOS]{FFF000}O player %s Esta Pegando um Veiculo - {FF0019}( /CV )", pName);
SendClientMessageToAll(0xFF0019FF,string);
format((string), sizeof(string), "{E10000}Infernus\n{E10000}Bullet\n{E10000}Elegy\n{E10000}Roadtrain\n{E10000}Squalo\n{E10000}BMX\n{E10000}Beagle\n{E10000}Andromada\n{E10000}Rustler\n{E10000}Stuntplane\n{E10000}NRG-500\n{E10000}Maverick");
ShowPlayerDialog(playerid,60,DIALOG_STYLE_LIST,"{E10000}FS Sistema de VEICULOS by SPOTGAMES",string,"OK","");
return 1;
}
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 60)
{
if(response)
{
if(listitem == 0)
{
DestroyVehicle(carro[playerid]);
GetPlayerFacingAngle(playerid,CA[playerid]);
GetPlayerPos(playerid, CX[playerid], CY[playerid], CZ[playerid]);
carro[playerid] = CreateVehicle(411,CX[playerid],CY[playerid],CZ[playerid],CA[playerid],-1,-1,30000);
LinkVehicleToInterior(carro[playerid],GetPlayerInterior(playerid));
PutPlayerInVehicle(playerid,carro[playerid],0);
SendClientMessage(playerid,0xE10000FF,"[SG-CARROS]{00E1FF}Carro Spawnado!!");
}
}
}
}
return 1;
}
nao ta o codigo todo mais e isso ae