[Ajuda] Skins
#1

tipo tem como eu colocar tipo assim todas as skin digitando so uma tipo assim

Код:
AddPlayerClass(1-299,2002.1337,1544.2186,13.5859,270.1779,0,0,0,0,0,0); //
pq fica digitando do 1 ate 299 nem rola ..
Reply
#2

Ponha Isto na OnGameModeInit Ajudei +Rep
pawn Код:
for(new skins = 3; skins < 299; skins++)
    {
        AddPlayerClass(skins,1958.3783,1343.1572,15.3746,270.1425,24,100000,26,100000,32,100000);
    }
Reply
#3

se tu me falar como faz tipo cara digita /ms e muda a sekin /ms 230 supondo ai do rep mano
Reply
#4

Veja esses:

Como fazer o comando /skin

Sistema de Skins em Dialog

Sistema de Skins em Dialog v2
Reply
#5

Fiz bem rapidinho axo q й isso q vc qr. Fiz em dcmd dps vc transforma para oq vc usa
pawn Код:
dcmd_skin(playerid, params[])
{
    new tmp[24], idx; tmp = strtok(params, idx);
    if(!strlen(tmp))
        return SendClientMessage(playerid, 0xBEBEBE, "/skin [skin id]");

    new skin;
    skin = strval(tmp);
    if(skin > 299 || skin < 1)
        return SendClientMessage(playerid, 0xBEBEBE, "Skins de 1 а 299!");

    SetPlayerSkin(playerid, skin);
    return 1;
}
Reply
#6

pawn Код:
CMD:ms(playerid, params[])
{
    new skin;
    if(sscanf(params, "d", skin)) return SendClientMessage(playerid, -1, "Utilize: /ms  [ 3 - 299 ]");
    else if(3 < (skin) > 299) return SendClientMessage(playerid, -1, "Utilize: /ms  [ 3 - 299 ]");
    SetPlayerSkin(playerid, skin);
    return 1;
}
Reply
#7

alguem pode fazer em strcmp ?
Reply
#8

I'm out.
Reply
#9

af se nao consegue trasformar ?
pawn Код:
if(strcmp(cmd, "/skin", true) == 0)
{
    new tmp[24], idx; tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
        return SendClientMessage(playerid, 0xBEBEBE, "/skin [skin id]");

    new skin;
    skin = strval(tmp);
    if(skin > 299 || skin < 1)
        return SendClientMessage(playerid, 0xBEBEBE, "Skins de 1 а 299!");

    SetPlayerSkin(playerid, skin);
    return 1;
}
Reply
#10

C:\Documents and Settings\Lucas ®\Desktop\B4S1\gamemodes\B4S.pwn(2179) : error 017: undefined symbol "cmd"
C:\Documents and Settings\Lucas ®\Desktop\B4S1\gamemodes\B4S.pwn(2181) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Lucas ®\Desktop\B4S1\gamemodes\B4S.pwn(2181) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Lucas ®\Desktop\B4S1\gamemodes\B4S.pwn(2181) : warning 203: symbol is never used: "idx"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)