151
mIRC/pawn Scripting / Re: One can! Llms in pawno (PWN)?
« on: February 13, 2011, 08:09:57 pm »
Easiest even i released a Game mode (Black Panther)
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.
else if (strcmp(cmd, "kick", true) == 0) {
new reason[256], plr, szMsg[256];
tmp = strtok(cmdtext, idx), reason = strtok(cmdtext, idx), plr = FindPlayerIDFromString(tmp);
else if (!strlen(reason)) SendClientMessage(playerid,COLOR_RED,"USAGE: /c kick [Nick/ID] [Reason]");
else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,COLOR_RED,"Error: Unknown player");
else {
format(szMsg,sizeof(szMsg),"Admin %s kicked player:[ %s ] Reason:[ %s ]",gPlayers[playerid],gPlayers[plr],cmdtext[strlen(tmp)+6]);
SendClientMessageToAll(COLOR_GREEN,szMsg);
Kick(plr);
}
return 1;
else if (strcmp(cmd, "kick", true) == 0) {
new reason[256], plr, szMsg[256];
tmp = strtok(cmdtext, idx), reason = strtok(cmdtext, idx), plr = FindPlayerIDFromString(tmp);
if(!IsPlayerAdmin(playerid) SendClientMessage(playerid,COLOR_RED,"You are not Rcon Admin");
else if (!strlen(reason)) SendClientMessage(playerid,COLOR_RED,"USAGE: /c kick [Nick/ID] [Reason]");
else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,COLOR_RED,"Error: Unknown player");
else {
format(szMsg,sizeof(szMsg),"Admin %s kicked player:[ %s ] Reason:[ %s ]",gPlayers[playerid],gPlayers[plr],cmdtext[strlen(tmp)+6]);
SendClientMessageToAll(COLOR_GREEN,szMsg);
Kick(plr);
}
return 1;
else if (strcmp(cmd, "back", true) == 0) {
new name[20], string[128];
GetPlayerName(playerid, name, 20);
format(string, sizeof(string), "%s, Is Back!", name);
SendClientMessageToAll(COLOR_GREEN, string);
return 1;
}
GetPlayerName(playerid, name, 20);
else if (strcmp(cmd, "back", true) == 0) {
new string[128];
format(string, sizeof(string), "%s, Is Back!", gPlayers[playerid]);
SendClientMessageToAll(COLOR_GREEN, string);
return 1;
Such us , i type /heal , but i am not in hospital. So " u are not in the hosopital '
how can i Identify the location , setplayerpos or ?
So , What how i can write in the pawno .. I don' t know ..
and how can I creat a icon On the radar,,, Thanks .
else if (strcmp(cmd, "!heal", true) == 0) {
new Float:Health; GetPlayerHealth(playerid,Health);
if(strcmp(GetPlayerLocation(playerid), "Hospital-Vice-Point-Vice-City-Beach", true) == 1)
SendClientMessage(playerid,COLOR_GREEN, "You have to be at the hospital.");
else if (Health >= 100) SendClientMessage(playerid,COLOR_GREEN,"Error: You are healthy!");
else {
SetPlayerHealth(playerid,100.0);
SendClientMessage(playerid,COLOR_GREEN,"You have been healed.");
}
return 1;
}
else if (strcmp(cmd, "!heal", true) == 0) {
new Float:Health; GetPlayerHealth(playerid,Health);
if (Health >= 100) SendClientMessage(playerid,COLOR_GREEN,"Error: You are healthy!");
else {
SetPlayerHealth(playerid,100.0);
SendClientMessage(playerid,COLOR_GREEN,"You have been healed.");
}
return 1;
}
/admin rcon_password
/s iconblait will give u Coords then Hurry Don't miss the Coordsor anyone will with Talk will remove it
/set 16 Icon-ID Pos:x Pos:y Pos:zfor Easy i give u example
/s posicon
Class : 0 0 0 0 -396.45454 324.68541 -435.4442 29.54544 0 0 0 0and next i type
/set 16 23 -396.45454 324.68541 -435.4442EDIT: the icon comes for Player who are in game not for then who after icon appear Connect server you will have to type it again when some one connect's
else if (strcmp(cmd, "unfreezeall", true) == 0) {
if(PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid, COLOR_RED, "You need to login first!");
else if(!IsPlayerCommandLevel(playerid,"healall")) SendClientMessage(playerid, COLOR_RED, "You don't have access to use this command!");
else {
unFreezeAll();
}
return 1;
}
stock unFreezeAll()
{
for(new i = 0; i <= MAX_PLAYERS; i++) {
if(IsPlayerConnected(i) == 1) TogglePlayerControllable(i,1);
}
}