05.04.2012, 19:25
Here i'm going to make DM script for my server, a make map, cmd for tp, but when some players who have slow PC type cmd they fall down under object where need to spawn, and i need to have when player type /dm1 to freeze him I have this script
Can anyone say how to make to player greeze to objects can load
And 1 more thing. Where to put when player kill someone to he get money
rep + if you help me (without error)
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/dm1", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, 1712.4000488281,-1086.8,2638.9);
SendClientMessage(playerid, 0x32CD32AA, "Welcome to KINGINA's Map, Try to survive, Type /dminfo for info and /reclass to leave DM");
GivePlayerWeapon(playerid, 27, 10000);//combat shotgun
GivePlayerWeapon(playerid, 31, 10000);//m4
GivePlayerWeapon(playerid, 29, 10000);//mp5
GivePlayerWeapon(playerid, 24, 10000);//deagle
GivePlayerWeapon(playerid, 34, 10000);//sniper
new string[256], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "{00ff00} %s has teleported to the deathmach arena!!!! (Type /dm1 to join him!!!) ", pname);
SendClientMessageToAll(playerid, string);
And 1 more thing. Where to put when player kill someone to he get money
rep + if you help me (without error)

