Somebody can give me the code to /kill command?
#1

Please somebody post the /kill command code for me sorry for my bad english
Reply
#2

just set the players health to 0.0
pawn Код:
if ( !strcmp( cmdtext, "/kill", true ) )
{
    SetPlayerHealth( playerid, 0.0 );
    return true;
}
put it under OnPlayerCommandText( ... )
Reply
#3

C:\Users\Adriana\Documents\samp03asvr_R3_win32\paw no\include\kill.pwn(2) : error 010: invalid function or declaration
C:\Users\Adriana\Documents\samp03asvr_R3_win32\paw no\include\kill.pwn(5) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

Please the complete script :/
I don't know scripting
Reply
#4

can you tell me where you put the code?
Reply
#5

filter scripts
Reply
#6

No where you placed it in the script
Reply
#7

in a new file
Reply
#8

can you post the script?
Reply
#9

if(strcmp(cmd, "/kill", true) == 0)
{
SetPlayerHealth(playerid, 0.0);
return 1;
}

I just write this in the pawno
I really need a tutorial
Reply
#10

that will never work open you're gamemode and copy that under
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  if( !strcmp( cmdtext, "/kill", true ) == 0 ) //Like this
  {
    SetPlayerHealth( playerid, 0.0 );
    return true;
  }
  return false;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)