[Ajuda] como eu crio esse cmd
#2

PHP код:
CMD:queimarmaconha(playerid) {
    new 
file[30], aname[MAX_PLAYER_NAME];
    
GetPlayerName(playeridaname,sizeof(aname));
    
format(filesizeof(file), PASTA_CONTAS1aname);
    if (
PlayerToPoint(3playerid,dini_Float(file"UltimaPosicaoXX"), dini_Float(file"UltimaPosicaoYY"), dini_Float(file"UltimaPosicaoZZ"))) return 1;
     else 
SendClientMessage(playeridBRANCO"teste");
    return 
1;

PHP код:
CMD:plantarmaconha(playerid) {
    if(
IsPlayerInMorro(playerid) || IsPlayerInShop(playerid) || IsPlayerInPark(playerid) || IsPlayerInCemiterio(playerid)
    || 
IsPlayerInPosto(playerid) || IsPlayerInShop(playerid) || IsPlayerInEstacao(playerid) || IsPlayerInCasarao(playerid) || IsPlayerInPref(playerid))
    {
        return 
SendClientMessage(playeridVERMELHO"Vocк nгo pode plantar aqui, plate fora da cidade ou de um territorio.");
    }
    if(
Infoa[playerid][Grande] >= 5) return SendClientMessage(playeridVERMELHO"Sua maconha esta grande, digite /colhermaconha!");
    if(
GetGranaRockstar(playerid) < 2000) return SendClientMessage(playeridBRANCO,"Vocк nгo tem R$2000!");
    if(
PlayerInfo[playerid][pMaconha1]) return SendClientMessage(playeridBRANCO"Vocк jб Plantou maconha!");
    
SendClientMessage(playeridBRANCO"Vocк Plantou um pй de maconha!");
    
SendClientMessage(playeridBRANCO"Ela irб crescer de Cinco a Cinco Minutos!");
    
SendClientMessage(playeridBRANCO"Nгo se esqueзa de Regar a maconha! /regar!");
    
GranaRockstar(playerid, -2000);
    
Infoa[playerid][Arara] = true;
    
Infoa[playerid][Tempo] = SetTimerEx("Crescimento"300000true"i"playerid);
    new 
Float:XFloat:YFloat:ZFloat:angleaname[MAX_PLAYER_NAME], file[128];
    
GetPlayerPos(playeridXYZ);
    
pMaconhaaa[playerid] = CreateDynamicObject(19473XYZ-20.00.0180);
    
SetPlayerPos(playeridXYZ+4);
    
GetPlayerName(playeridanamesizeof(aname));
    
format(strlabelsizeof(strlabel), "{FFD700}Maconha\n{82FABE}Dono:%s\nStatus:%d/5"anameInfoa[playerid][Grande]);
    
MyMaconha[playerid] = Create3DTextLabel(strlabelCOR_3DLABELX,Y,Z,40.0,0);
    
GetPlayerFacingAngle(playeridangle);
    
format(filesizeof(file), PASTA_CONTAS1aname);
    if(!
dini_Exists(file)) dini_Create(file);
    
dini_FloatSet(file"UltimaPosicaoXX"X);
    
dini_FloatSet(file"UltimaPosicaoYY"Y);
    
dini_FloatSet(file"UltimaPosicaoZZ"Z);
    
dini_FloatSet(file"UltimoAngulo"angle);
    
PlayerInfo[playerid][pMaconha1] = 1;
    return 
1;

Reply


Messages In This Thread
como eu crio esse cmd - by zGuigui2068 - 20.11.2016, 17:30
Re: como eu crio esse cmd - by [BOPE]Seu._.Madruga - 21.11.2016, 00:40

Forum Jump:


Users browsing this thread: 1 Guest(s)