[Off] FilterScripts para o Fуrum
#17

Quote:
Originally Posted by Zona_Sky
View Post
aki estб.. pode edita-lo variaveis etc..

pawn Code:
if(strcmp(cmd, "/cv", true) == 0) {
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(pAdmin[playerid] == 2 || pAdmin[playerid] == 3 || pAdmin[playerid] == 4 || pAdmin[playerid] == 5){
new tmp[256];
new plid;
//new carro;
new Float:X,Float:Y,Float:Z,Float:Angle;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, "(ERRO) Digite: /cv [id-do-caro]");
return 1;
}
plid = strval(tmp);
if(plid==3 || plid==2 || plid==1 || plid==4 || plid==5 || plid==56 || plid==50 || plid==43 || plid==52 || plid==44|| plid==45 ){
SendClientMessage(playerid, Vermelho, "[SERVER] ID de carro Proibido!");
return 1;
}
if(IsPlayerConnected(playerid)){
if(plid >= 400 && plid <= 611){
GetPlayerPos(playerid,X,Y,Z);
GetPlayerFacingAngle(playerid,Angle);
new carro = CreateVehicle(plid, X, Y, Z, Angle, -1, -1, 120000);
PutPlayerInVehicle(playerid,carro,0);
if(GetPlayerInterior(playerid))
LinkVehicleToInterior(carro,GetPlayerInterior(playerid));
SetVehicleVirtualWorld(carro,GetPlayerVirtualWorld(playerid));
format(string, sizeof(string), "(INFO) Vocк criou o veнculo de id: %d", plid);
SendClientMessage(playerid, tcadm, string);
return 1;
}else{
SendClientMessage(playerid, Vermelho, "(ERRO) ID invбlido || ID's = 400-611");
return 1;
}
}
}
}
criar qual que [ID] de carro so usa /cv [ID] que jaй criado com tu dentro.
Na linha: if(pAdmin[playerid] == 2 || pAdmin[playerid] == 3 || pAdmin[playerid] == 4 || pAdmin[playerid] == 5){
diz que sу admin pode usar o comando ^^
Reply


Messages In This Thread
FilterScripts para o Fуrum - by [FeK]Knife - 08.11.2012, 22:10
Re: FilterScripts para o Fуrum - by @Riichard - 08.11.2012, 22:12
Re: FilterScripts para o Fуrum - by jpeg - 08.11.2012, 22:16
Re: FilterScripts para o Fуrum - by [FeK]Knife - 08.11.2012, 22:44
Re: FilterScripts para o Fуrum - by rannyere - 08.11.2012, 22:56
Re: FilterScripts para o Fуrum - by [FeK]Knife - 08.11.2012, 23:06
Re: FilterScripts para o Fуrum - by Zona_Sky - 08.11.2012, 23:17
Re: FilterScripts para o Fуrum - by s4kuL - 08.11.2012, 23:18
Re: FilterScripts para o Fуrum - by Zona_Sky - 08.11.2012, 23:24
Re: FilterScripts para o Fуrum - by dPlaYer_ - 08.11.2012, 23:57
Re: FilterScripts para o Fуrum - by Zona_Sky - 09.11.2012, 00:12
Re: FilterScripts para o Fуrum - by zSuYaNw - 09.11.2012, 00:22
Re: FilterScripts para o Fуrum - by URSS_Morelli - 09.11.2012, 00:25
Re: FilterScripts para o Fуrum - by Zona_Sky - 09.11.2012, 00:29
Re: FilterScripts para o Fуrum - by URSS_Morelli - 09.11.2012, 00:31
Re: FilterScripts para o Fуrum - by Zona_Sky - 09.11.2012, 00:33
Re: FilterScripts para o Fуrum - by URSS_Morelli - 09.11.2012, 00:39
Re: FilterScripts para o Fуrum - by Zona_Sky - 09.11.2012, 01:02
Re: FilterScripts para o Fуrum - by [FeK]Knife - 09.11.2012, 01:05
Re: FilterScripts para o Fуrum - by Zona_Sky - 09.11.2012, 01:06
Re: FilterScripts para o Fуrum - by zSuYaNw - 09.11.2012, 01:11

Forum Jump:


Users browsing this thread: 3 Guest(s)