Crash Problem!
#1

why do i need to spam /crash to crash the person??

PHP код:
if(strcmp(cmd"/crash"true) == 0)
                    {
                        if(
IsPlayerConnected(playerid))
                        {
                            
tmp strtok(cmdtextidx);
                            if(!
strlen(tmp))
                            {
                                
SendClientMessage(playeridCOLOR_GRAD2"SYNTAX: /crash [playerid/PartOfName]");
                                return 
1;
                            }
                            
giveplayerid ReturnUser(tmp);
                            
GetPlayerName(giveplayeridgiveplayersizeof(giveplayer));
                            if (
PlayerInfo[playerid][pAdmin] >= 1339)
                            {
                                if(
IsPlayerConnected(giveplayerid))
                                {
                                    if(
giveplayerid != INVALID_PLAYER_ID)
                                    {
                                         if(
giveplayerid == playerid) { SendClientMessage(playeridCOLOR_RED" Nu-ti poti da Crash ! "); return 1; }
                                        
GameTextForPlayer(giveplayerid"•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"10000);
                                        
GameTextForPlayer(giveplayerid"•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"20001);
                                        
GameTextForPlayer(giveplayerid"•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"30002);
                                        
GameTextForPlayer(giveplayerid"•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"40003);
                                        
GameTextForPlayer(giveplayerid"•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"50004);
                                        
GameTextForPlayer(giveplayerid"•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"60005);
                                        
GameTextForPlayer(giveplayerid"•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"70006);
                                        
GameTextForPlayer(giveplayerid"•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"80007);
                                        
GameTextForPlayer(giveplayerid"•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"90008);
                                        
GameTextForPlayer(giveplayerid"•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"100009);
                                        
GameTextForPlayer(giveplayerid"•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"1100010);
                                        
GameTextForPlayer(giveplayerid"•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"1200011);
                                        
GameTextForPlayer(giveplayerid"•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"1300012);
                                        
GameTextForPlayer(giveplayerid"•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"1400013);
                                        
GameTextForPlayer(giveplayerid"•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"1500014);
                                        
GameTextForPlayer(giveplayerid"•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"1600015);
                                        
GameTextForPlayer(giveplayerid"•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"1700016);
                                        
GameTextForPlayer(giveplayerid"•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"1800017);
                                        
GameTextForPlayer(giveplayerid"•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"1900018);
                                        
GameTextForPlayer(giveplayerid"•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"2000019);
                                        
format(stringsizeof(string), "Ai dat crash lui %s (%d)'s game"giveplayer,giveplayerid);
                                          
SendClientMessage(playerid,COLOR_DBLUEstring);
                                        return 
1;
                                    }
                                    else
                                    {
                                        
format(stringsizeof(string), "** Unknown Player!"giveplayerid);
                                        
SendClientMessage(playeridCOLOR_GRAD1string);
                                    }
                                }
                            }
                            else
                            {
                                
format(stringsizeof(string), "** You are not Authorised to Use this Command!"giveplayerid);
                                
SendClientMessage(playeridCOLOR_GRAD1string);
                            }
                        }
                        return 
1;
                    } 
Reply


Messages In This Thread
Crash Problem! - by Akcent_Voltaj - 29.09.2012, 19:03
Re: Crash Problem! - by Akcent_Voltaj - 30.09.2012, 11:47
Re: Crash Problem! - by Visio - 30.09.2012, 11:48

Forum Jump:


Users browsing this thread: 2 Guest(s)