01.08.2009, 21:57
no fuck it to many servers any ways
Originally Posted by sora_watson
no fuck it to many servers any ways
|
if(strcmp(cmdtext, "/bk", true) == 0) { for (new i = 0; i < MAX_PLAYERS; i++) { if(GetPlayerTeam(i) == TEAM_COP) { new name[255]; GetPlayerName(playerid, name, 255); new string[256]; format(string,256,"Officier %s need Backup",name); SendClientMessageToAll(COLOR_BLUE,string); SetPlayerColor(playerid,0xAB23B6FF); SetTimer("ChangeColor",30000,0); } } } forward ChangeColor(playerid); public ChangeColor(playerid); { SetPlayerColor(playerid,0xFFFFF); // Or Any Color You Want }
Originally Posted by Martin_Smith
Quote:
|
new string[256],pname[MAX_PLAYER_NAME],ip[20]; GetPlayerName(playerid, pname, sizeof(pname)); GetPlayerIp(playerid,ip,sizeof(ip)); format(string,sizeof(string),"players/%s.txt", pname); if(!dini_Exists(string)) { dini_Create(string); print("\n File Created"); } dini_Set(string,"Ip",ip[playerid]);
public OnPlayerText(playerid,text[])
{
new string[128],name[24];
GetPlayerName(playerid,name,24);
format(string,128,"[!] %s (ID:%d)says:%s",name,playerid,text);
SendClientMessageToAll(COLOR,string);
return 0;
}
Originally Posted by Fabio11
Easy
Код:
if(strcmp(cmdtext, "/bk", true) == 0) { for (new i = 0; i < MAX_PLAYERS; i++) { if(GetPlayerTeam(i) == TEAM_COP) { new name[255]; GetPlayerName(playerid, name, 255); new string[256]; format(string,256,"Officier %s need Backup",name); SendClientMessageToAll(COLOR_BLUE,string); SetPlayerColor(playerid,0xAB23B6FF); SetTimer("ChangeColor",30000,0); } } } forward ChangeColor(playerid); public ChangeColor(playerid); { SetPlayerColor(playerid,0xFFFFF); // Or Any Color You Want } |
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\RealityCNR.pwn(680) : error 029: invalid expression, assumed zero C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\RealityCNR.pwn(680) : error 017: undefined symbol "ChangeColor" C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\RealityCNR.pwn(682) : error 029: invalid expression, assumed zero C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\RealityCNR.pwn(682) : error 017: undefined symbol "ChangeColor" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
if(strcmp(cmdtext, "/bk", true) == 0) { for (new i = 0; i < MAX_PLAYERS; i++) { if(GetPlayerTeam(i) == TEAM_COP) { new name[255]; GetPlayerName(playerid, name, 255); new string[256]; format(string,256,"Officier %s need Backup, Now! He is Marked Purple on the map!",name); SendClientMessageToAll(COLOR_BLUE,string); SetPlayerColor(playerid,0xAB23B6FF); SetTimer("ChangeColor",30000,0); return 1; } } } forward ChangeColor(playerid); ---> line 680 public ChangeColor(playerid); ---> line 682 { SetPlayerColor(playerid,0x800080AA); // Or Any Color You Want }
Originally Posted by Seif_ [adream-rp.com
]
Quote:
|
public OnPlayerRequestSpawn(playerid)
{
if(pClass[playerid] == yanzl && (PlayerInfo[playerid][pAdminLevel] >= 1 || IsPlayerAdmin(playerid)))
{
SendClientMessage(playerid,COLOR_RED,"This skin only for admins!");
return 0;
}
return 1;
}
Originally Posted by Yanzl
Why doesn't this work?
pawn Код:
I'm level 5 admin and it doesn't let mee choose it. |
public OnPlayerRequestSpawn(playerid)
{
if(pClass[playerid] == yanzl && (PlayerInfo[playerid][pAdminLevel] >= 1 || IsPlayerAdmin(playerid)))
{
return 1;
}
else
{
SendClientMessage(playerid,COLOR_RED,"This skin only for admins!");
return 0;
}
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
if(pClass[playerid] == yanzl && (PlayerInfo[playerid][pAdminLevel] >= 1 || IsPlayerAdmin(playerid)))
{
return 1;
}
else if(pClass[playerid] == yanzl)
{
SendClientMessage(playerid,COLOR_RED,"This skin only for admins!");
return 0;
}
return 1;
}