Hello There, Guest! Login or Register


Need help with "PAWNO"
#7
Quote://my includes
#include <a_samp>

#include <core>

#include <float>

#include <string.inc>

//my defines

#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

#define COLOR_GREY 0xAFAFAFAA

#define COLOR_GREEN 0x33AA33AA

#define COLOR_RED 0xAA3333AA

#define COLOR_YELLOW 0xFFFF00AA

#define COLOR_PINK 0xFF66FFAA

#define COLOR_BLUE 0x0000BBAA

#define COLOR_LIGHTBLUE 0x33CCFFAA

#define COLOR_DARKRED 0x660000AA

#define COLOR_ORANGE 0xFF9900AA


The Part that don't want to work out.
//------------------------------------------------------------------------------

//public OnPlayerText(playerid, text[])
//{
//  if (strcmp(text, "armour", true) == 0)
  // {
  //    new Float:armour, string[70];
  //    GetPlayerArmour(playerid, armour);
  //    format(string, sizeof(string), "Console: You armour is %d", armour);
  //    SendClientMessage(playerid, 0xFFFFFFAA, string);
  //    return 0;
//  }

//  return 1;
//}
//------------------------------------------------------------------------------
public OnPlayerCommandText(playerid, cmdtext[])
//{
//if(strcmp(cmdtext, "/kill", true) == 0) return SetPlayerHealth(playerid,0);
//}

//dcmd_teleport(playerid,params[])
//{
// new endid;
// if(sscanf(params, "d",endid)) return SendClientMessage(playerid,white,"Correct Usage: /teleport <playerid>");
// if(!IsPlayerConnected(endid)) return SendClientMessage(playerid,COLOR_RED,"Invalid player id.");
// if(playerid == endid) return SendClientMessage(playerid,red,"You can't teleport to yourself!");
// new Float:Pos[3];
// GetPlayerPos(endid,Pos[0],Pos[1],Pos[2]);
// SetPlayerPos(playerid,Pos[0]+1,Pos[1],Pos[2]);
// SetPlayerInterior(playerid,(GetPlayerInterior(endid)));
// return true;


//new WaitDelay[MAX_PLAYERS],
  //  String[32];

//{
  // if (!strcmp(cmdtext,"/teleport <playerid>"))
  // {
    //  new waittime = gettime() - WaitDelay[playerid];

      //  if (waittime < 5)
      // {
        //    format(String, sizeof(String), "You need to wait %d seconds!", 5 - waittime);
        //    SendClientMessage(playerid, 0xFF0000FF, String);
      // }
        //else
  //      {
  //          SendClientMessage(playerid, 0x00FF00FF, "Ok!");
//          WaitDelay[playerid] = gettime();
//      }
//      return true;
//    }
//    return false;
//}

//-------------------------------------------------------------------
//Team Defines

just igonre the "//" :)
Ant this is not the whole script as you can se... 8)7


:w :Y) *help*
Would be super duper nice if someone could help me out with a car respawn command to!  :w
Reply


Messages In This Thread
Need help with "PAWNO" - by blahc - 05-04-2008, 09:06 PM
Re: Need help with "PAWNO" - by AzTeC - 05-05-2008, 08:24 AM
Re: Need help with "PAWNO" - by Jay - 05-05-2008, 11:28 AM
Re: Need help with "PAWNO" - by blahc - 05-05-2008, 05:35 PM
Re: Need help with "PAWNO" - by blahc - 05-05-2008, 07:39 PM
Re: Need help with "PAWNO" - by Dimplex - 05-05-2008, 07:46 PM
Re: Need help with "PAWNO" - by blahc - 05-05-2008, 08:29 PM
Re: Need help with "PAWNO" - by Jay - 05-06-2008, 12:35 AM
Re: Need help with "PAWNO" - by Dimplex - 05-06-2008, 09:00 AM
Re: Need help with "PAWNO" - by blahc - 05-06-2008, 05:09 PM
Re: Need help with "PAWNO" - by FarePak - 05-06-2008, 08:02 PM
Re: Need help with "PAWNO" - by blahc - 05-07-2008, 06:38 AM