Forum

> > CS2D > Scripts > Cookie Script
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Cookie Script

2 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Cookie Script

_Ultimate_
User Off Offline

Zitieren
Hey guys i need 2 commands

@takecookie ID
@givecookie ID

these commands are easy but i dont now how to make them
i just want when you tell

@takecookie 3

it telles you

NICKNAME TAKED A COOKIE FROM NICKNAME

and when you tell

@givecookie

it telles you

NICKNAME GAVED A COOKIE TOO NICKNAME

alt Re: Cookie Script

EngiN33R
Moderator Off Offline

Zitieren
1
2
3
4
5
6
7
8
9
10
11
addhook("say","cookiez")
function cookiez(id,t)
	if (t:sub(1,11)=="@takecookie") then
		msg(player(id,"name").." took a cookie from "..player(tonumber(t:sub(12)),"name"))
		return 1
	end
	if (t:sub(1,11)=="@givecookie") then
		msg(player(id,"name").." gave a cookie to "..player(tonumber(t:sub(12)),"name"))
		return 1
	end
end
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht