20.01.2011, 23:00
Isto deve resolver o seu problema:
Coloque:
Espero ter ajudado
Coloque:
pawn Код:
//No Topo do GM:
new PlacaVeiculo[MAX_VEHICLES][30];
//No OnGameModeInit:
//========Nesta Linha, coloque para carregar======//
for(new x = 0; x < MAX_VEHICLES; x++)
{
SetVehicleNumberPlate(x, PlacaVeiculo[x]);
}
//No OnPlayerCommandText:
if(strcmp(cmd, "/mudarmatricula", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 10)
{
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[128];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
idx++;
if(!strlen(result)) return SendClientMessage(playerid, COLOR_GREY, "{AA3333}/amudarmat{AFAFAF} [matricula]");
SetVehicleNumberPlate(GetPlayerVehicleID(playerid), result);
strmid(PlacaVeiculo[GetPlayerVehicleID(playerid)], result, 0, strlen(result), sizeof(PlacaVeiculo[GetPlayerVehicleID(playerid)]));
//========Nesta Linha, coloque para salvar======//
}
return 1;
}
Espero ter ajudado
![Cheesy](images/smilies/biggrin.png)