Quote:
Originally Posted by Goldilox
Is this somewhere close of what you mean?
pawn Код:
CMD:piss(playerid,params[]) {
new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid,X,Y,Z); for(new i = 0; i < MAX_PLAYERS; I++) { new name[MAX_PLAYER_NAME],string[128]; new slapper[MAX_PLAYER_NAME]; GetPlayerName(i,name,sizeof(name)); GetPlayerName(playerid,slapper,sizeof(slapper)); if(IsPlayerInRangeOfPoint(i,1.5,X,Y,Z) { format(string,sizeof(string),"%s is pissing on %s.",slapper,name); SendClientMessageToAll(0xFF4000,string); // Do your animation here. } } return 1;
}
EDIT: Late!
|
D:\Documents and Settings\real\Desktop\SFT 1.6\filterscripts\Zadmin4.2.pwn(1485) : warning 219: local variable "name" shadows a variable at a preceding level
D:\Documents and Settings\real\Desktop\SFT 1.6\filterscripts\Zadmin4.2.pwn(1485) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Documents and Settings\real\Desktop\SFT 1.6\filterscripts\Zadmin4.2.pwn(1490) : error 001: expected token: ")", but found "{"
D:\Documents and Settings\real\Desktop\SFT 1.6\filterscripts\Zadmin4.2.pwn(3186) : warning 217: loose indentation
D:\Documents and Settings\real\Desktop\SFT 1.6\filterscripts\Zadmin4.2.pwn(3193) : warning 217: loose indentation
D:\Documents and Settings\real\Desktop\SFT 1.6\filterscripts\Zadmin4.2.pwn(3194) : warning 217: loose indentation
D:\Documents and Settings\real\Desktop\SFT 1.6\filterscripts\Zadmin4.2.pwn(3200) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.