• Welcome to Vice City Multiplayer.
 

Warchiefs v1.0 by Madara (Last updated: 26/March/2011 )

Started by Madara, March 14, 2011, 06:59:50 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gta5

hmm the ! commands don't work

Madara

#46
lead the file .PWN and open it from there goes to the "public OnPlayerText (playerid, cmdtext)" and change this:

public OnPlayerText(playerid, cmdtext[])
{
new cmd[256], tmp[256],tmp2[256],rules[256];
new idx, plr, Count, i;
new Float:x, Float:y, Float:z;
cmd = strtok(cmdtext, idx);
format(INFO,256, REGISTERS, gPlayers[playerid]);

   new spammer = (GetTickCount()-MSNCount[playerid])/MSNxSEC;
   MSNPlayer[playerid]+=spammer-1;
   if(MSNPlayer[playerid]>LIMIT_REP_SPAM)MSNPlayer[playerid]=LIMIT_REP_SPAM-1;
   if(MSNPlayer[playerid]<0)MSNPlayer[playerid]=-1;
       MSNCount[playerid]=GetTickCount();
       if(MSNPlayer[playerid]<0) {
       PlayerKicked(playerid,"Server","-"," NO SPAMM");
return 1;
   }
   
   else if (strcmp(cmd, cmd, true) == 0) {
       if (strcmp(cmd, Spamming[playerid][LastText], true) == 0 && Spamming[playerid][CountText] >= 3) PlayerKicked(playerid,"Server","-"," SPAMMING");
       else {
    format(MSN,256,"%s", cmdtext);
            if (strcmp(cmd, Spamming[playerid][LastText], true) == 0) {Spamming[playerid][LastText] = MSN; Spamming[playerid][CountText] = Spamming[playerid][CountText] + 1;}
            else {Spamming[playerid][LastText] = MSN; Spamming[playerid][CountText] = 0;}
}
return 1;
   }
   
   if (strcmp(cmd, "urbo", true) == 0 || strcmp(cmd, "turbo", true) == 0) {
       PlayerKicked(playerid,"Server","-"," Forbidden Text");
return 1;
   }



Dalate this:


   if (strcmp(cmd, cmd, true) == 0) {
       if (strcmp(cmd, Spamming[playerid][LastText], true) == 0 && Spamming[playerid][CountText] >= 3) PlayerKicked(playerid,"Server","-"," SPAMMING");
       else {
    format(MSN,256,"%s", cmdtext);
            if (strcmp(cmd, Spamming[playerid][LastText], true) == 0) {Spamming[playerid][LastText] = MSN; Spamming[playerid][CountText] = Spamming[playerid][CountText] + 1;}
            else {Spamming[playerid][LastText] = MSN; Spamming[playerid][CountText] = 0;}
}
return 1;
   } 


And change this code to a public, look:

public PlayerSpamming(playerid,cmd[],cmdtext[])
{
    if (strcmp(cmd, cmd, true) == 0) {
       if (strcmp(cmdtext, Spamming[playerid][LastText], true) == 0 && Spamming[playerid][CountText] >= 3) PlayerKicked(playerid,"Server","-"," SPAMMING");
       else {
        format(MSN,256,"%s", cmdtext);
            if (strcmp(cmd, Spamming[playerid][LastText], true) == 0) {Spamming[playerid][LastText] = MSN; Spamming[playerid][CountText] = Spamming[playerid][CountText] + 1;}
            else {Spamming[playerid][LastText] = MSN; Spamming[playerid][CountText] = 0;}
        }
}
return 1;
}


And paste this line in public "OnPlayerText(playerid, cmdtext[])", look:

public OnPlayerText(playerid, cmdtext[])
{
new cmd[256], tmp[256],tmp2[256],rules[256];
new idx, plr, Count, i;
new Float:x, Float:y, Float:z;
cmd = strtok(cmdtext, idx);
format(INFO,256, REGISTERS, gPlayers[playerid]);
    PlayerSpamming(playerid,cmd,cmdtext);// <-- This line paste here.

    new spammer = (GetTickCount()-MSNCount[playerid])/MSNxSEC;
    MSNPlayer[playerid]+=spammer-1;
    if(MSNPlayer[playerid]>LIMIT_REP_SPAM)MSNPlayer[playerid]=LIMIT_REP_SPAM-1;
    if(MSNPlayer[playerid]<0)MSNPlayer[playerid]=-1;
        MSNCount[playerid]=GetTickCount();
        if(MSNPlayer[playerid]<0) {
        PlayerKicked(playerid,"Server","-"," Forbidden SPAMM");
return 1;
    }

   

theway

nice work, if i buy one prop, what can it do for me?  ,
  You test the pwn, what some bugs u know , if has some bug u need to tell us

Scripter

Quote from: theway on March 21, 2011, 08:09:10 AM
nice work, if i buy one prop, what can it do for me?  ,
  You test the pwn, what some bugs u know , if has some bug u need to tell us
yea what the props do there is no propspawn system and heal

theway

when u buy prop , u can spawn in your prop is good  ,plz i think

Scripter

bug cmds
/c killall /c kick and many more

Madara

/c kick   if work, but /c killall not, now repair that command, and.. what others??

theway

when i buy prop. can spawn  in my  prop?

Madara

Clearly, if you spawn a prop, type! propspawn, but more than anything right now but I know that porblem presented in the server, to fix it, so while I climbed back to the server with some bugs fixed.

theway


theway

  else if (GetPlayerBank(playerid) < strval(tmp)) MessagePM(playerid, GREEN,"[Error] - You don't have enough money to withdraw.");

didn't work

Madara

Hey theway, what you id yahoo?

theway


Madara

in my messenger, i have not received any notification that someone added me, better send me your yahoo id

Scripter

there is no propspawn cmd in scripts and /c kick if we r using it to anyplayer this kick cmd is kicking us