[Ajuda] Comando /Pregos
#5

Quote:
Originally Posted by DannielCooper
Посмотреть сообщение
Ficarб por sua conta as verificaзхes.

pawn Код:
CMD:pregos(playerid, params[]){
   
    #pragma unused params
    new Float:Pregos[4], nome[MAX_PLAYER_NAME];
    GetPlayerName(playerid, nome, sizeof(nome));
    CreateStrip(x, y, z, angle);
    return 1;
}
Nгo consigo criar :S da-me muitos erros :S nгo а maneira de consertar o meu codigo?

pawn Код:
CMD:createspike(playerid, params[])
{
    new string[128], Float:Pos[4];
    if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
    if(!IsACop(playerid) && !IsFBI(playerid) && !IsARES(playerid) && !IsAGov(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You are not a LEO.");
    if(!PlayerInfo[playerid][pFacDuty]) return SendClientMessage(playerid, COLOR_GREY, "You are not on duty.");
    if(PlayerInfo[playerid][pFacRank] < 4) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command. (Rank 4+)");
    GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
    GetPlayerFacingAngle(playerid,Pos[3]);
    CreateStrip(Pos[0], Pos[1], Pos[2],Pos[3]);
    format(string, sizeof(string), "BCPD: %s has created a spike strip.", RPN(playerid));
    SendCopMessage(COLOR_BLUE, string);
    return 1;
}
Reply


Messages In This Thread
Comando /Pregos - by MorreJaa - 11.02.2014, 23:32
Re: Comando /Pregos - by MorreJaa - 12.02.2014, 12:34
Re: Comando /Pregos - by DannielCooper - 12.02.2014, 15:06
Re: Comando /Pregos - by davi54723 - 12.02.2014, 17:35
Re: Comando /Pregos - by MorreJaa - 12.02.2014, 18:35
Re: Comando /Pregos - by PT - 12.02.2014, 19:57
Re: Comando /Pregos - by MorreJaa - 12.02.2014, 20:10
Re: Comando /Pregos - by DouglasRodrigues - 12.02.2014, 23:27
Re: Comando /Pregos - by MorreJaa - 13.02.2014, 16:49
Re: Comando /Pregos - by MorreJaa - 13.02.2014, 18:36

Forum Jump:


Users browsing this thread: 1 Guest(s)