At the minute the Pawn server is what I'd call "poverty" , It doesn't have any support for IRC Sockets at the moment.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: maxorator on February 25, 2010, 09:33:41 PM
We assume people know how to use installers...
Quote from: maxorator on February 25, 2010, 08:21:03 PM
Well, if they see that message and try to find out how to update and come to this site (vicecitymultiplayer.com), the first thing they're gonna see is a big headline "Latest Pawn Server && Client Released 17.01.2010". How could we make it any more clear?
Quote
[Thu - 18:26:11] <@Spaner> ** [ 0 ] yovani has joined Miami-Dade Racing.
[Thu - 18:26:45] <@Tammer> -AdminServ- Auto-Kicked:[ yovani ] Reason:[ Outdated R2 client ]
[Thu - 18:26:45] <@Spaner> ** [ 0 ] yovani has left Miami-Dade Racing. (Kicked)
Quote from: Jc18 on February 14, 2010, 10:11:21 PMQuote from: Jack_Bauer on February 14, 2010, 10:07:39 PMQuote from: [AoD]NC on February 14, 2010, 09:55:50 PMQuote from: Knucis on February 14, 2010, 09:51:41 PMQuote from: Ghostface_Killah on February 14, 2010, 02:47:38 PMQuote from: -TriX- on February 14, 2010, 02:43:15 PMQuote from: dave5 on February 14, 2010, 01:37:57 PMQuote from: Sephiroth on February 14, 2010, 01:02:36 PMQuote from: Boss on February 14, 2010, 10:09:32 AMQuote from: thijn on February 14, 2010, 10:00:50 AMQuote from: Foxtrot on February 13, 2010, 09:59:24 PMQuote from: Cypher on February 13, 2010, 02:07:46 PMQuote from: Forze on February 13, 2010, 11:55:21 AMQuote from: Skirmant on February 13, 2010, 09:33:06 AM
Happy new year
Quote from: Sudokono on February 09, 2010, 07:38:21 PM
http://codeplea.com/game-scripting-languages
Quote from: Boss on February 07, 2010, 10:42:37 PM
2 Force:
// Squirrel vs Pawn '/c heal' command
//////////////////////////////
///////// VC:MP Pawn /////////
//////////////////////////////
#include <a_vcmp>
#include <util> // FindPlayerIDFromString and other util functions here
public OnPlayerCommandText(playerid, cmdtext[]){
new cmd[256], idx;
cmd = strtok(cmdtext, idx);
if (strcmp(cmd, "heal", true) == 0){
cmd = strtok(cmdtext, idx);
if (!strlen(cmd)) idx = playerid;
else idx = FindPlayerIDFromString(cmd);
if (idx == INVALID_PLAYER_ID) return 1;
if (IsPlayerInAnyVehicle(idx)) SetVehicleHealth(GetPlayerVehicleID(idx),1000.0);
SetPlayerHealth(idx,100.0);
}
return 1;
}
//////////////////////////////
/////// VC:MP Squirrel ///////
//////////////////////////////
function onPlayerCommand( player, cmd, text ){
if ( cmd == "heal" ) {
if ( text ) {
local plr = FindPlayer( text.tointeger() );
if ( plr ) {
if ( plr.Vehicle ) plr.Vehicle.Health = 1000.0;
plr.Health = 100;
}
else Message( "Invalid ID " + text );
}
}
}
Pawn 15 lines (2 of which are includes), SQ 12. Not such a big difference. Sorry, but if you can't optimize scripts it's not devs' fault. :s
// Squirrel vs Pawn '/c heal' command
//////////////////////////////
///////// VC:MP Pawn /////////
//////////////////////////////
#include <a_vcmp>
#include <core>
#include <float>
#define INACTIVE_PLAYER_ID 255
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256];
new tmp[256];
new szMsg[256];
new idx, newvar;
cmd = strtok(cmdtext, idx);
if (strcmp(cmd, "heal", true) == 0)
{
tmp = strtok(cmdtext, idx);
if (!strlen(tmp)) { newvar = playerid; }
else { newvar = FindPlayerIDFromString(tmp); }
if (newvar == INACTIVE_PLAYER_ID) { return 1; }
if (IsPlayerInAnyVehicle(newvar)) {
SetVehicleHealth(GetPlayerVehicleID(newvar),1000.0);
SetPlayerHealth(newvar,100.0);
} else {
SetPlayerHealth(newvar,100.0);
}
return 1;
}
return 0;
}
public FindPlayerIDFromString(string[])
{// for determining player id from a string -bakasan
new szMsg[256];
new player = INACTIVE_PLAYER_ID;
new p = 0;
while (p < MAX_PLAYERS) { if (strfind(gPlayers[p],string,true) != -1) { player=p;break; } p++; }
if (player == INACTIVE_PLAYER_ID) {// string didnt match so check if it can be an id
if ((strlen(string) > 2) || (isnumeric(string) == 0)) {
format(szMsg,sizeof(szMsg),"Unable to find %s.",string);
SendClientMessageToAll(COLOR_GREY, szMsg);
return INACTIVE_PLAYER_ID;
}
player = strval(string);// string is numeric and not more than 2 digits
}
if (!IsPlayerConnected(player)) {
format(szMsg,sizeof(szMsg),"Invalid ID %d.",player);
SendClientMessageToAll(COLOR_GREY, szMsg);
return INACTIVE_PLAYER_ID;
}
return player;// valid id found
}
//////////////////////////////
/////// VC:MP Squirrel ///////
//////////////////////////////
function onPlayerCommand( player, cmd, text )
{
if ( cmd == "heal" )
{
if ( text )
{
local plr = FindPlayer( text.tointeger() );
if ( plr )
{
if ( plr.Vehicle ) plr.Vehicle.Health = 1000.0;
plr.Health = 100;
}
else Message( "Invalid ID " + text );
}
}
}