SA-MP Forums Archive
How do i do this please help and see - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How do i do this please help and see (/showthread.php?tid=152008)



How do i do this please help and see - jonas4334 - 01.06.2010

Like when i do /kill i killing my self in server and after i do it agian i wanna the charchter who using it agian need to wait 150 secs please tell me how to do it becuse im new


Re: How do i do this please help and see - Killa_ - 01.06.2010

pawn Код:
#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1

public OnPlayerCommandText(playerid, cmdtext[])
{
  dcmd(Kill,4,cmdtext);
  return 0;
}

dcmd_Kill(playerid,params[])
{
  #pragma unused params
  if(GetPVarInt(playerid, Died) == 1) return SendClientMessage(playerid, Color, "*** You can use /kill once every 150 seconds.");
  SetPlayerHealth(playerid,0.0);
  SetPVarInt(playerid, Died, 1);
  SetTimerEx("Reset",150000, false, "i", playerid);
  return 1;
}

forward Reset(playerid); public Reset(playerid) SetPVarInt(playerid, Died, 0);



Re: How do i do this please help and see - jonas4334 - 02.06.2010

Thanks but one problem /:








C:\Users\JonasGg\Desktop\Scripting For sa-mp pawno\pawno\HamodisServerStreetlifestoriesserv.pwn (9 : error 017: undefined symbol "Died"
C:\Users\JonasGg\Desktop\Scripting For sa-mp pawno\pawno\HamodisServerStreetlifestoriesserv.pwn (9 : error 017: undefined symbol "Color"
C:\Users\JonasGg\Desktop\Scripting For sa-mp pawno\pawno\HamodisServerStreetlifestoriesserv.pwn (100) : error 017: undefined symbol "Died"
C:\Users\JonasGg\Desktop\Scripting For sa-mp pawno\pawno\HamodisServerStreetlifestoriesserv.pwn (105) : error 017: undefined symbol "Died"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.



Re: How do i do this please help and see - jonas4334 - 02.06.2010

C:\Users\JonasGg\Desktop\Scripting For sa-mp pawno\gamemodes\HamodisServerStreetlifestoriesserv .pwn(90) : error 017: undefined symbol "dcmd"
C:\Users\JonasGg\Desktop\Scripting For sa-mp pawno\gamemodes\HamodisServerStreetlifestoriesserv .pwn(104) : error 017: undefined symbol "Died"
C:\Users\JonasGg\Desktop\Scripting For sa-mp pawno\gamemodes\HamodisServerStreetlifestoriesserv .pwn(229) : warning 203: symbol is never used: "dcmd_Kill"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.



Re: How do i do this please help and see - Kar - 02.06.2010

put this at the top of ur script
Код:
#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1



Re: How do i do this please help and see - jonas4334 - 02.06.2010

Still got a Problem :/ i would be so happy to get that work please




C:\Users\JonasGg\Desktop\Scripting For sa-mp pawno\gamemodes\OkdizoneG.pwn(97) : error 017: undefined symbol "Died"
C:\Users\JonasGg\Desktop\Scripting For sa-mp pawno\gamemodes\OkdizoneG.pwn(97) : error 017: undefined symbol "Color"
C:\Users\JonasGg\Desktop\Scripting For sa-mp pawno\gamemodes\OkdizoneG.pwn(99) : error 017: undefined symbol "Died"
C:\Users\JonasGg\Desktop\Scripting For sa-mp pawno\gamemodes\OkdizoneG.pwn(104) : error 017: undefined symbol "Died"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.



Re: How do i do this please help and see - Kar - 02.06.2010

idk about died but what colour do u want it to send in?


Re: How do i do this please help and see - jonas4334 - 02.06.2010

Red


Re: How do i do this please help and see - Bomber - 02.06.2010

pawn Код:
#define COLOR_RED           0xFF0000AA



Re: How do i do this please help and see - vladi866 - 02.06.2010

have you just add "new Died"?