31.01.2010, 09:40
Firstly find the pos using https://sampwiki.blast.hk/wiki/Strfind . Then delete the veh part using https://sampwiki.blast.hk/wiki/Strdel . Then we will insert the right $veh thing using https://sampwiki.blast.hk/wiki/Strins. Also, Nice copying crazybobs .
EDIT (Example):
EDIT (Example):
pawn Код:
public OnPlayerText(playerid, text[])
{
new Check = strfind(text, "$veh");
if(Check != -1)
{
strdel(text, Check, Check + 3);
new Str[56];
format(Str, sizeof(Str), "%s", /*VehicleNamesList*/);
strins(text,str, Check);
}
return 1;
}