Can someone help me?
#1

i want create a gate whitch open ONLY when a player with "MR" tag go near this gate...
I already create the openable gate,but everyone can open it.How to make it openable only for MR?

here the important part of the script

#define FILTERSCRIPT
forward DoesPlayerHasTag(playerid,tag[]);
public DoesPlayerHasTag(playerid,tag[]) {
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
return (strfind(name,tag,true) != -1) ? 1 : 0;
}

public kapucheck() {
new kozelbenvan;

for(new i = 0; i <= MAX_PLAYERS; i++) {
if(IsPlayerConnected (i)) {
if(GetPlayerDistanceToPointEx(i, coords[0][0], coords[0][1], coords[0][2]) < 10 && i think i have to add something here ) {
kozelbenvan = 1;
break;
}
}
}

Reply


Messages In This Thread
Can someone help me? - by caldaia - 10.07.2009, 15:17
Re: Can someone help me? - by Khelif - 10.07.2009, 15:46
Re: Can someone help me? - by caldaia - 10.07.2009, 17:43
Re: Can someone help me? - by caldaia - 14.07.2009, 10:31
Re: Can someone help me? - by caldaia - 15.07.2009, 15:26
Re: Can someone help me? - by caldaia - 16.07.2009, 18:52
Re: Can someone help me? - by woot - 16.07.2009, 18:55
Re: Can someone help me? - by caldaia - 17.07.2009, 11:27

Forum Jump:


Users browsing this thread: 2 Guest(s)