[DUV] /Convidar
#1

Bem eu to criando novas orgs no meu gm mais eu quero saber como coloca o /convidar e as skins pra ela que saber se estou fazendo certo

PHP код:
    if(SelectChar[playerid] == 255)
    {
        new 
idx;
        
tmp strtok(textidx);
        if ((
strcmp("Proximo"tmptruestrlen(tmp)) == 0) && (strlen(tmp) == strlen("Proximo")))
        {
            switch (
SelectCharID[playerid])
            {
                case 
1//Policia Militar
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid280); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 280; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid281); SelectCharPlace[playerid] = 3ChosenSkin[playerid] = 281; }
                    else if(
SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid282); SelectCharPlace[playerid] = 4ChosenSkin[playerid] = 282; }
                    else if(
SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid265); SelectCharPlace[playerid] = 5ChosenSkin[playerid] = 265; }
                    else if(
SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid267); SelectCharPlace[playerid] = 6ChosenSkin[playerid] = 267; }
                    else if(
SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid246); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 246; }
                }
                case 
2//ROTA
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid285); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 285; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid298); SelectCharPlace[playerid] = 3ChosenSkin[playerid] = 298; }
                    else if(
SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid285); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 285; }
                }
                case 
3//Exйrcito
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid287); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 287; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid191); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 191; }
                }
                case 
4//SAMU
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid91); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 91; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid279); SelectCharPlace[playerid] = 3ChosenSkin[playerid] = 279; }
                    else if(
SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid277); SelectCharPlace[playerid] = 4ChosenSkin[playerid] = 277; }
                    else if(
SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid276); SelectCharPlace[playerid] = 5ChosenSkin[playerid] = 276; }
                    else if(
SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid275); SelectCharPlace[playerid] = 6ChosenSkin[playerid] = 275; }
                    else if(
SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid279); SelectCharPlace[playerid] = 7ChosenSkin[playerid] = 279; }
                    else if(
SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid274); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 274; }
                }
                case 
5//Varrios Los Aztecas
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid116); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 116; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid115); SelectCharPlace[playerid] = 3ChosenSkin[playerid] = 115; }
                    else if(
SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid114); SelectCharPlace[playerid] = 4ChosenSkin[playerid] = 114; }
                    else if(
SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid41); SelectCharPlace[playerid] = 5ChosenSkin[playerid] = 41; }
                    else if(
SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid148); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 148; }
                }
                case 
6//Taliban
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid122); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 122; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid272); SelectCharPlace[playerid] = 3ChosenSkin[playerid] = 272; }
                    else if(
SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid131); SelectCharPlace[playerid] = 4ChosenSkin[playerid] = 131; }
                    else if(
SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid128); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 128; }
                }
                case 
7//Prefeito
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid164); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 164; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid163); SelectCharPlace[playerid] = 3ChosenSkin[playerid] = 163; }
                    else if(
SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid17); SelectCharPlace[playerid] = 4ChosenSkin[playerid] = 17; }
                    else if(
SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid141); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 141; }
                }
                case 
8//Hitman Agency
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid166); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 166; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid165); SelectCharPlace[playerid] = 3ChosenSkin[playerid] = 165; }
                    else if(
SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid127); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 127; }
                }
                case 
9//Reporteres
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid188); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 188; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid187); SelectCharPlace[playerid] = 3ChosenSkin[playerid] = 187; }
                    else if(
SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid148); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 148; }
                }
                case 
10//Taxistas
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid255); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 255; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid219); SelectCharPlace[playerid] = 3ChosenSkin[playerid] = 219; }
                    else if(
SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid253); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 253; }
                }
                case 
11//Policia federal
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid224); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 224; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid286); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 286; }
                }
                case 
12//Mafia CN
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid17); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 17; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid43); SelectCharPlace[playerid] = 3ChosenSkin[playerid] = 43; }
                    else if(
SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid46); SelectCharPlace[playerid] = 4ChosenSkin[playerid] = 46; }
                    else if(
SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid98); SelectCharPlace[playerid] = 5ChosenSkin[playerid] = 98; }
                    else if(
SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid111); SelectCharPlace[playerid] = 6ChosenSkin[playerid] = 111; }
                    else if(
SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid223); SelectCharPlace[playerid] = 7ChosenSkin[playerid] = 223; }
                    else if(
SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid126); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 126; }
                }
                case 
13//Yakuza
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid203); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 203; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid204); SelectCharPlace[playerid] = 3ChosenSkin[playerid] = 204; }
                    else if(
SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid117); SelectCharPlace[playerid] = 4ChosenSkin[playerid] = 117; }
                    else if(
SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid118); SelectCharPlace[playerid] = 5ChosenSkin[playerid] = 118; }
                    else if(
SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid169); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 169; }
                }
                case 
14//Groove
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid105); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 105; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid106); SelectCharPlace[playerid] = 3ChosenSkin[playerid] = 106; }
                    else if(
SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid107); SelectCharPlace[playerid] = 4ChosenSkin[playerid] = 107; }
                    else if(
SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid271); SelectCharPlace[playerid] = 5ChosenSkin[playerid] = 271; }
                    else if(
SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid195); SelectCharPlace[playerid] = 6ChosenSkin[playerid] = 195; }
                    else if(
SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid269); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 269; }
                }
                case 
15//Al'qaeda
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid30); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 30; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid47); SelectCharPlace[playerid] = 3ChosenSkin[playerid] = 47; }
                    else if(
SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid48); SelectCharPlace[playerid] = 4ChosenSkin[playerid] = 48; }
                    else if(
SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid192); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 192; }
                }
                case 
16//Policia Civil
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid202); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 202; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid299); SelectCharPlace[playerid] = 3ChosenSkin[playerid] = 299; }
                    else if(
SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid124); SelectCharPlace[playerid] = 4ChosenSkin[playerid] = 124; }
                    else if(
SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid76); SelectCharPlace[playerid] = 5ChosenSkin[playerid] = 76; }
                    else if(
SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid141); SelectCharPlace[playerid] = 6ChosenSkin[playerid] = 141; }
                    else if(
SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid59); SelectCharPlace[playerid] = 7ChosenSkin[playerid] = 59; }
                    else if(
SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid185); SelectCharPlace[playerid] = 8ChosenSkin[playerid] = 185; }
                    else if(
SelectCharPlace[playerid] == 8) { SetPlayerSkin(playerid240); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 240; }
                }
                case 
17//Ballas
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid102); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 102; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid103); SelectCharPlace[playerid] = 3ChosenSkin[playerid] = 103; }
                    else if(
SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid104); SelectCharPlace[playerid] = 4ChosenSkin[playerid] = 104; }
                    else if(
SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid40); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 40; }
                }
                case 
18//Vagos
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid108); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 108; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid109); SelectCharPlace[playerid] = 3ChosenSkin[playerid] = 109; }
                    else if(
SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid110); SelectCharPlace[playerid] = 4ChosenSkin[playerid] = 110; }
                    else if(
SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid91); SelectCharPlace[playerid] = 5ChosenSkin[playerid] = 91; }
                    else if(
SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid85); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 85; }
                }
                case 
19//Comando Vermelho
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid19); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 19; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid170); SelectCharPlace[playerid] = 3ChosenSkin[playerid] = 170; }
                    else if(
SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid40); SelectCharPlace[playerid] = 4ChosenSkin[playerid] = 40; }
                    else if(
SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid193); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 193; }
                }
                case 
20//PCC
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid28); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 28; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid30); SelectCharPlace[playerid] = 3ChosenSkin[playerid] = 30; }
                    else if(
SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid47); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 47; }
                }
                case 
22//Sons Of Anarchy
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid148); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 126; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid147); SelectCharPlace[playerid] = 3ChosenSkin[playerid] = 34; }
                    else if(
SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid100); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 185; }
                }
                case 
23//SWAT
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid285); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 285; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid285); SelectCharPlace[playerid] = 3ChosenSkin[playerid] = 285; }
                    else if(
SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid59); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 59; }
                }
            }
            return 
0;
        } 
tipo pra criar uma nova org й so colocar esse
PHP код:
case 23//SWAT
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid285); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 285; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid285); SelectCharPlace[playerid] = 3ChosenSkin[playerid] = 285; }
                    else if(
SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid59); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 59; }
                }
            }
            return 
0;
        } 
Se Estiver Certo Me Digam
Reply


Messages In This Thread
[DUV] /Convidar - by Vageto[STK] - 18.02.2011, 15:25
Re: [DUV] /Convidar - by Macintosh - 18.02.2011, 20:41
Re: [DUV] /Convidar - by Caio_Cartaxo - 18.02.2011, 21:34

Forum Jump:


Users browsing this thread: 2 Guest(s)