Ohh . Okey, Thanks @Thijn for tell me it.
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 Menu 1: Newbie
2. Reg. Player
3.High Roller
4.VIP.
Admin level 1.Admin
2.manager
Quotethe command give me error.
and also
const should being top of the script. not in OnScriptLoad
Quote from: Stormeus on Sep 02, 2015, 05:50 PMIt's not really roleplaying unless you use accents. Example should beAccent is not fact, In roleplay, accent is not much care. RP depend on role of a player.QuoteStormeus takes out his gun, Reload ammo and start shooting in a French accent
forward ProxDetector(Float:radi, playerid, str[], col1, col2, col3, col4, col5);
public ProxDetector(Float:radi, playerid, str[],col1,col2,col3,col4,col5)
{
if(IsPlayerConnected(playerid))
{
new Float:posx, Float:posy, Float:posz;
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
//radi = 2.0; //Trigger Radius
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
GetPlayerPos(i, posx, posy, posz);
tempposx = (oldposx -posx);
tempposy = (oldposy -posy);
tempposz = (oldposz -posz);
//printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
if (((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16)))
{
SendClientMessage(i, col1, str);
}
else if (((tempposx < radi/8) && (tempposx > -radi/8)) && ((tempposy < radi/8) && (tempposy > -radi/8)) && ((tempposz < radi/8) && (tempposz > -radi/8)))
{
SendClientMessage(i, col2, str);
}
else if (((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4)))
{
SendClientMessage(i, col3, str);
}
else if (((tempposx < radi/2) && (tempposx > -radi/2)) && ((tempposy < radi/2) && (tempposy > -radi/2)) && ((tempposz < radi/2) && (tempposz > -radi/2)))
{
SendClientMessage(i, col4, str);
}
else if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
SendClientMessage(i, col5, str);
}
}
}
}//not connected
return 1;
}
and the command isCMD:me(playerid, params[])
{
if(gPlayerLogged{playerid} == 0)
{
SendClientMessageEx(playerid, COLOR_GREY, "You're not logged in.");
return 1;
}
if(isnull(params)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /me [action]");
if(strlen(params) > 128)
{
new firstline[128], secondline[128];
strmid(firstline, params, 0, 126);
strmid(secondline, params, 126, 205);
format(secondline, sizeof(secondline), "... %s", secondline);
format(firstline, sizeof(firstline), "* %s %s ...", GetPlayerNameEx(playerid), firstline);
ProxDetector(30.0, playerid, firstline, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
ProxDetector(30.0, playerid, secondline, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else {
new string[128];
format(string, sizeof(string), "* %s %s", GetPlayerNameEx(playerid), params);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
return 1;
}
I know Pawno and Squirrel fully different. and also, I am not well know about SQ. .Quote from: KAKAN on Sep 02, 2015, 12:22 PMOh what is RP and what do you mean by saying MassagenearRP mean RolePlay. the famous mode in GTA gaming.
Quote from: Doom_Killer on Sep 02, 2015, 12:24 PMCreate an array which holds all the online players, when someone uses that command, run a foreach loop to go through all the online players, each time a player is taken out from array, check his distance from command user using DistanceFromPoint function and if it in range of certain area then display the message for him using MessagePlayer.Any script example please?
@KAKAN, If you don't know something then just skip the topic
else if ( cmd == "me" )
{
if (status[ player.ID ].IsReg == false) MessagePlayer(RED+"** []: >> "+ORANGE+"You Need To Registered First!",player);
else if ( status[ player.ID ].IsLogged == false ) MessagePlayer(RED+"** []: >> "+ORANGE+"You Need To Logged-In First!",player);
else if ( !player.IsSpawned ) MessagePlayer( RED+"** []: >> "+ORANGE+"First Spawned And Then Use It.", player );
else if ( !text ) MessagePlayer(ORANGE+"Usage: /"+ cmd +" [Text]", player );
else {
Message(RED+"** >> [Me]:-"+player.Name+""+WHITE+""+text+"");
}
}
Result as playername > Stormeus type > Takes out his gun, Reload ammo and start shooting Stormeus takes out his gun, Reload ammo and start shooting
Massage give massage in whole chat, But I want this as MassagenearQuote from: Xmair on Sep 01, 2015, 01:03 AMYou won't believe that vccnr has a teamspeak channel. I talk there.Many server are really not much sure about Should they need TS3
Quote from: KAKAN on Aug 31, 2015, 08:32 AMTS3 is really good, but no one joins it as no one wants their voice to be heard by a strangerbut playing DM with talking chat, is very awesome felling. and also TS3 have chatting system too
Quote from: Stormeus on Aug 30, 2015, 07:01 PMCrash logs submitted to the tracker require debugging information that only developers have.Server can crash for Script problem?