Posts: 439
Threads: 62
Joined: Apr 2012
Hello, I made this filterscript within 15 minutes and all it does right now is equips a HockeyMask2 to your face.
If you type /mask then your nametag disappears and when you type it comes up as stranger.
EX: "Stranger says: Give me your money!".
In Version 2 I'll add a dialog with a variety of mask you can place on your face.
Код:
[10/4/13]
- Initial Release
Download Link:
http://www.solidfiles.com/d/d4d0c444db/
To add this to your server:
- Download this to your 'filterscripts' folder.
- Go to server.cfg - Add "mask" to the filterscripts line. There should be a successful message to say it was loaded fully.
PLEASE NOTE: You need zcmd && sscanf for this to function properly!
Credits:
- Me.
- Zeke.
- ******.
Posts: 2,175
Threads: 235
Joined: Sep 2009
Reputation:
0
This will fits correctly to all skins?
and sure you have to remove some unless things from your Filterscript such as ongamemodeinit or unused functions
Posts: 439
Threads: 62
Joined: Apr 2012
Quote:
Originally Posted by [ISS]jumbo
This will fits correctly to all skins?
and sure you have to remove some unless things from your Filterscript such as ongamemodeinit or unused functions
|
Not too sure yet.. Maybe in V2?
Posts: 1,767
Threads: 124
Joined: Mar 2010
Quote:
Originally Posted by iJumbo
This will fits correctly to all skins?
and sure you have to remove some unless things from your Filterscript such as ongamemodeinit or unused functions
|
pawn Код:
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("------------------------------");
print("| Simple Mask System Loaded! |");
print("| Version v1.0! |");
print("------------------------------");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}
public OnPlayerSpawn(playerid)
{
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
Posts: 439
Threads: 62
Joined: Apr 2012
Quote:
Originally Posted by Emmet_
pawn Код:
format(string,sizeof(string), "Stranger", randomID); SetPlayerName(playerid, string);
You formatted the string but forgot to add the placeholder, try this:
pawn Код:
format(string,sizeof(string), "Stranger%d", randomID); SetPlayerName(playerid, string);
You should hide the player's name for other players rather than setting the player's name, good job though.
|
Ahh yeah! Thanks!
Quote:
Originally Posted by Riddick94
pawn Код:
#if defined FILTERSCRIPT
public OnFilterScriptInit() { print("------------------------------"); print("| Simple Mask System Loaded! |"); print("| Version v1.0! |"); print("------------------------------"); return 1; }
public OnFilterScriptExit() { return 1; }
#else
main() { print("\n----------------------------------"); print(" Blank Gamemode by your name here"); print("----------------------------------\n"); }
#endif
public OnGameModeInit() { // Don't use these lines if it's a filterscript SetGameModeText("Blank Script"); AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); return 1; }
public OnGameModeExit() { return 1; }
public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); return 1; }
public OnPlayerSpawn(playerid) { return 1; }
public OnPlayerDeath(playerid, killerid, reason) { return 1; }
public OnVehicleSpawn(vehicleid) { return 1; }
public OnVehicleDeath(vehicleid, killerid) { return 1; }
|
Erm..?
Posts: 439
Threads: 62
Joined: Apr 2012
Quote:
Originally Posted by iJumbo
You just need
pawn Код:
public OnFilterScriptInit() { print("------------------------------"); print("| Simple Mask System Loaded! |"); print("| Version v1.0! |"); print("------------------------------"); return 1; }
public OnFilterScriptExit() { return 1; }
no the whole functions
|
Urm, What?