SA-MP Forums Archive
/rfc - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /rfc (/showthread.php?tid=360792)



Small Problem Please Help - Akcent_Voltaj - 18.07.2012

can someone help me with a /rfc cmd that each lider respawns his faction cars..and i got neon fs and none of them work..and what is wrong with this i can show some identification..

PHP код:
if(strcmp(cmd,"/showbuletin",true)==0)
                    {
                    if(
IsPlayerConnected(playerid))
                    {
                    
tmp strtok(cmdtextidx);
                    if(!
strlen(tmp))
                    {
                        
SendClientMessage(playeridCOLOR_WHITE"USAGE: /showbuletin [playerid/PartOfName]");
                        return 
1;
                    }
                    
giveplayerid ReturnUser(tmp);
                    if(
IsPlayerConnected(giveplayerid))
                    {
                        if(
giveplayerid != INVALID_PLAYER_ID)
                        {
                            if (
ProxDetectorS(8.0playeridgiveplayerid))
                            {
                                if(
PlayerInfo[playerid][pBuletin] < 1)
                                {
                                    
SendClientMessage(playeridCOLOR_WHITE"You don't have a buletin to show!");
                                }
                                if(
giveplayerid == playerid) { SendClientMessage(playeridCOLOR_GREY"You cannot Show your Buletin to yourself, use /buletin!"); return 1; }
                                
GetPlayerName(playeridsendernamesizeof(sendername));
                                
GetPlayerName(giveplayeridgiveplayersizeof(giveplayer));
                                new 
otext[20];
                                new 
atext[20];
                                new 
str[256];
                                if(
PlayerInfo[playerid][pSex] == 1) { atext "Masculin"; }
                                else if(
PlayerInfo[playerid][pSex] == 2) { atext "Feminin"; }
                                
SendClientMessage(playeridCOLOR_ORANGEstr);
                                
format(stringsizeof(string), "* %s has shown his Buletin to you."sendername);
                                
SendClientMessage(giveplayeridCOLOR_LIGHTBLUEstring);
                                
format(stringsizeof(string), "* You have shown your Buletin to %s."giveplayer);
                                
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                                
format(str,sizeof(str), "|-----------|ROMANIA|----------|",giveplayer);
                                
SendClientMessage(playeridCOLOR_ORANGEstr);
                                
format(str,sizeof(str), "Name: %s",giveplayer);
                                
SendClientMessage(playeridCOLOR_WHITEstr);
                                
format(str,sizeof(str), "Age: %d",PlayerInfo[playerid][pAge],giveplayer);
                                
SendClientMessage(playeridCOLOR_LIGHTBLUEstr);
                                
format(str,sizeof(str), "Origin: %s",otext,giveplayer);
                                
SendClientMessage(playeridCOLOR_LIGHTREDstr);
                                
format(str,sizeof(str), "Sex: %s",atext,giveplayer);
                                
SendClientMessage(playeridCOLOR_YELLOWstr);
                                
format(str,sizeof(str), "|-------------------------------|",giveplayer);
                                
SendClientMessage(playeridCOLOR_ORANGEstr);
                            }
                            else
                            {
                                
SendClientMessage(playeridCOLOR_GREY"   That player is not near you !");
                                return 
1;
                            }
                        }
                    }
                    else
                    {
                        
SendClientMessage(playeridCOLOR_GREY"   That player is Offline !");
                        return 
1;
                    }
                    }
                    return 
1;
                    } 



Re: /rfc - Akcent_Voltaj - 19.07.2012

anyone pleasee


Re: /rfc - Akcent_Voltaj - 19.07.2012

anyone help me please (