Posts: 102
Threads: 12
Joined: Oct 2012
Reputation:
0
Hi. I have a filterscript that has a command /xxxxx(rcon only)
what i want to do is make a marker on the floor in the bar. ( next to cjs old house grove street) thst when a a player walks into the bar and to the red marker on floor it will ask the player if he or she want to become xxxxx.
if the player picks yes then then the server will issue the command /xxxxx playerid and the player will become xxxxx
Posts: 293
Threads: 45
Joined: Dec 2011
Reputation:
0
Well, I'm a newb scripter but I think that if somebody just gives you this you wont learn, just try stuff (First back it up)
Posts: 102
Threads: 12
Joined: Oct 2012
Reputation:
0
well if it it useless then delete it pls . i have been to request script ill try to post there thx
Posts: 565
Threads: 32
Joined: Jul 2012
Reputation:
0
Give me your /makevampire command.
Posts: 102
Threads: 12
Joined: Oct 2012
Reputation:
0
CMD:makevampire(playerid,params[])
{
new id;
if(sscanf(params,"u",id) ) return SendClientMessage(playerid,COLOR_RED,"[USAGE]: /makevampire [id]");
if(!IsPlayerAdmin(playerid) ) return SendClientMessage(playerid,COLOR_RED,"You are not an RCON Admin!");
if(Vampire[id] == 1) return SendClientMessage(playerid,COLOR_RED,"ERROR: Player is already vampire");
if(!IsPlayerConnected(id) ) return SendClientMessage(playerid,COLOR_RED,"Player is not connected");
else
{
new name[MAX_PLAYER_NAME], playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
GetPlayerName(id,playername,sizeof(playername));
new gstring[256], string[256];
format(string,sizeof(string),"Admin %s maked you a vampire, he is now a vampire!",playername);
format(gstring,sizeof(gstring),"You had been transformed into a Vampire by Admin %s",name);
SendClientMessage(playerid,COLOR_BLUE,string);
SendClientMessage(id,COLOR_GREEN,gstring);
SetPlayerWeather(id,-2);
Vampire[id] = 1;
VTimer = SetTimerEx("MakeVampire",5000,false,"u",id);
DTimer = SetTimerEx("IfDay",60*1000,true,"u",id);
}
return 1;
}